File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
servers/curated-corpus-api/prisma
migrations/20250729235557_add_custom_section_metadata_to_section Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1+ -- AlterTable
2+ ALTER TABLE ` Section` ADD COLUMN ` description` VARCHAR (255 ) NULL ,
3+ ADD COLUMN ` endDate` DATE NULL ,
4+ ADD COLUMN ` heroDescription` VARCHAR (255 ) NULL ,
5+ ADD COLUMN ` heroTitle` VARCHAR (255 ) NULL ,
6+ ADD COLUMN ` startDate` DATE NULL ;
Original file line number Diff line number Diff line change @@ -108,6 +108,9 @@ model Section {
108108 // note - for ML-generated Sections, externalId will be set by ML
109109 externalId String @unique @default (uuid () ) @db.VarChar (255 )
110110 title String @db.VarChar (255 )
111+ description String ? @db.VarChar (255 )
112+ heroTitle String ? @db.VarChar (255 )
113+ heroDescription String ? @db.VarChar (255 )
111114 scheduledSurfaceGuid String @db.VarChar (50 )
112115 // optional IAB info as as JSON blob: {taxonomy: 'IAB-3.0', categories: string[])
113116 iab Json ?
@@ -129,6 +132,8 @@ model Section {
129132 deactivatedAt DateTime ?
130133 createdAt DateTime @default (now () )
131134 updatedAt DateTime @updatedAt
135+ startDate DateTime ? @db.Date
136+ endDate DateTime ? @db.Date
132137
133138 // relations
134139 sectionItems SectionItem []
You can’t perform that action at this time.
0 commit comments