diff --git a/server/entities/phaseHistory.ts b/server/entities/phaseHistory.ts index b4d9dd10b..6ac23dc4d 100644 --- a/server/entities/phaseHistory.ts +++ b/server/entities/phaseHistory.ts @@ -17,9 +17,17 @@ export class PhaseHistory { }) phase: VillagePhase; - @CreateDateColumn() + @CreateDateColumn({ + type: 'datetime', + precision: 6, + default: () => 'CURRENT_TIMESTAMP(6)', + }) public startingOn: Date; - @DeleteDateColumn() + @DeleteDateColumn({ + type: 'datetime', + precision: 6, + nullable: true, + }) public endingOn: Date; }