@@ -258,7 +258,7 @@ def tables(self) -> Dict[str, Table]:
258
258
Field (name = "password" , type = "VARCHAR(256)" , unique = False ),
259
259
Field .hex_color (name = "avatar_hex_color" , default = "'#cfcfcf'" , nullable = False ),
260
260
Field (name = "phone" , type = "VARCHAR(30)" , nullable = True ),
261
- Field .nullable_datetime_with_now_check_field ("last_visit_at" , use_localtime = self . use_localtime , default = None ),
261
+ Field .nullable_datetime ("last_visit_at" , default = None ),
262
262
Field .fk_field (name = "role_id" ),
263
263
], fk_constraints = [
264
264
FKConstraint .on_id (fk_field = "role_id" , on_table = self .role_table_name , on_update = "CASCADE" , on_delete = "RESTRICT" )
@@ -303,7 +303,7 @@ def tables(self) -> Dict[str, Table]:
303
303
Field .id_field (),
304
304
Field .name_field (unique = False ),
305
305
Field .description_field (),
306
- Field .nullable_datetime_with_now_check_field (name = "deadline" ),
306
+ Field .nullable_datetime (name = "deadline" ),
307
307
Field (name = "priority" , type = "INTEGER" , default = "0" ),
308
308
Field .created_at_field (use_localtime = self .use_localtime ),
309
309
Field .updated_at_field (use_localtime = self .use_localtime ),
@@ -330,7 +330,7 @@ def tables(self) -> Dict[str, Table]:
330
330
self .task_table_name
331
331
], other_fields = [
332
332
Field .datetime_now ("assigned_at" , use_localtime = self .use_localtime ),
333
- Field .nullable_datetime_with_now_check_field ("last_watched_at" , use_localtime = self . use_localtime , default = None ),
333
+ Field .nullable_datetime ("last_watched_at" , default = None ),
334
334
], with_triggers = [
335
335
Trigger (
336
336
name = f"{ self .task_assignment_table_name } _on_insert_updater_trigger" ,
@@ -352,7 +352,7 @@ def tables(self) -> Dict[str, Table]:
352
352
self .todo_item_table_name : Table (self .todo_item_table_name , [
353
353
Field .id_field (),
354
354
Field .description_field (nullable = False ),
355
- Field .nullable_datetime_with_now_check_field (name = "deadline" ),
355
+ Field .nullable_datetime (name = "deadline" ),
356
356
Field .created_at_field (use_localtime = self .use_localtime ),
357
357
Field .updated_at_field (use_localtime = self .use_localtime ),
358
358
Field (name = "done" , type = "INTEGER" , default = "0" ),
0 commit comments