Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: migration to separate vesting schedule to separate columns #453

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- AlterTable
ALTER TABLE "Option" ADD COLUMN "cliffYears" INTEGER NOT NULL DEFAULT 0,
ADD COLUMN "vestingYears" INTEGER NOT NULL DEFAULT 0;

-- AlterTable
ALTER TABLE "Share" ADD COLUMN "cliffYears" INTEGER NOT NULL DEFAULT 0,
ADD COLUMN "vestingYears" INTEGER NOT NULL DEFAULT 0;
7 changes: 6 additions & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,11 @@ model Share {
debtCancelled Float? // Amount of debt cancelled
otherContributions Float? // Other contributions

cliffYears Int @default(0) // 0 means immediate vesting, 1 means vesting starts after 1 year
vestingYears Int @default(0) // 0 means immediate vesting, 1 means vesting over 1 year
vestingSchedule VestingScheduleEnum
companyLegends ShareLegendsEnum[]

companyLegends ShareLegendsEnum[]

issueDate DateTime
rule144Date DateTime?
Expand Down Expand Up @@ -747,6 +750,8 @@ model Option {

type OptionTypeEnum
status OptionStatusEnum @default(DRAFT)
cliffYears Int @default(0) // 0 means immediate vesting, 1 means vesting starts after 1 year
vestingYears Int @default(0) // 0 means immediate vesting, 1 means vesting over 1 year
vestingSchedule VestingScheduleEnum

issueDate DateTime
Expand Down