diff --git a/database/entity/0037-add_contribution_links_table/ContributionLinks.ts b/database/entity/0037-add_contribution_links_table/ContributionLinks.ts index 6539716c6..fde67eef3 100644 --- a/database/entity/0037-add_contribution_links_table/ContributionLinks.ts +++ b/database/entity/0037-add_contribution_links_table/ContributionLinks.ts @@ -72,8 +72,8 @@ export class ContributionLinks extends BaseEntity { }) minGapHours: number | null - @Column({ name: 'created_at', type: 'datetime', nullable: true, default: null }) - createdAt: Date | null + @Column({ name: 'created_at', type: 'datetime', default: () => 'CURRENT_TIMESTAMP' }) + createdAt: Date @DeleteDateColumn() deletedAt: Date | null