diff --git a/models/sub_distributors.json b/models/sub_distributors.json index 3ccf012..ae17091 100644 --- a/models/sub_distributors.json +++ b/models/sub_distributors.json @@ -111,12 +111,14 @@ "name": "created_at", "title": "创建时间", "type": "datetime", - "nullable": "no" + "nullable": "no", + "default": "CURRENT_TIMESTAMP" }, { "name": "updated_at", "title": "更新时间", - "type": "datetime" + "type": "datetime", + "default": "CURRENT_TIMESTAMP" } ], "indexes": [ @@ -158,4 +160,4 @@ "cond": "parentid='sub_distributor_status'" } ] -} +} \ No newline at end of file