Update runtime.go

This commit is contained in:
AlanAlanAlanXu
2025-07-21 16:12:36 +08:00
parent b2d06d0eed
commit 1786a7e598

View File

@@ -261,11 +261,11 @@ func init() {
// task.DefaultIsSuggested holds the default value on creation for the is_suggested field.
task.DefaultIsSuggested = taskDescIsSuggested.Default.(bool)
// taskDescCreatedAt is the schema descriptor for created_at field.
taskDescCreatedAt := taskFields[14].Descriptor()
taskDescCreatedAt := taskFields[17].Descriptor()
// task.DefaultCreatedAt holds the default value on creation for the created_at field.
task.DefaultCreatedAt = taskDescCreatedAt.Default.(func() time.Time)
// taskDescUpdatedAt is the schema descriptor for updated_at field.
taskDescUpdatedAt := taskFields[15].Descriptor()
taskDescUpdatedAt := taskFields[18].Descriptor()
// task.DefaultUpdatedAt holds the default value on creation for the updated_at field.
task.DefaultUpdatedAt = taskDescUpdatedAt.Default.(func() time.Time)
// task.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.