Add schedule data model and migration

This commit is contained in:
NeilClack
2026-09-11 18:15:57 -05:00
parent 960673bbc6
commit e6b492a335
13 changed files with 5228 additions and 8 deletions
@@ -66,7 +66,10 @@ export const ModelName = {
LicenseKey: 'LicenseKey',
ApiKey: 'ApiKey',
ColorPalette: 'ColorPalette',
AuditLog: 'AuditLog'
AuditLog: 'AuditLog',
Schedule: 'Schedule',
Block: 'Block',
BlockProclamations: 'BlockProclamations'
} as const
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
@@ -283,6 +286,39 @@ export const AuditLogScalarFieldEnum = {
export type AuditLogScalarFieldEnum = (typeof AuditLogScalarFieldEnum)[keyof typeof AuditLogScalarFieldEnum]
export const ScheduleScalarFieldEnum = {
id: 'id',
userId: 'userId',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type ScheduleScalarFieldEnum = (typeof ScheduleScalarFieldEnum)[keyof typeof ScheduleScalarFieldEnum]
export const BlockScalarFieldEnum = {
id: 'id',
scheduleId: 'scheduleId',
startMinutes: 'startMinutes',
endMinutes: 'endMinutes',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type BlockScalarFieldEnum = (typeof BlockScalarFieldEnum)[keyof typeof BlockScalarFieldEnum]
export const BlockProclamationsScalarFieldEnum = {
blockId: 'blockId',
proclamationId: 'proclamationId',
sortOrder: 'sortOrder',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type BlockProclamationsScalarFieldEnum = (typeof BlockProclamationsScalarFieldEnum)[keyof typeof BlockProclamationsScalarFieldEnum]
export const SortOrder = {
asc: 'asc',
desc: 'desc'