Skip to content

Commit

Permalink
update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
kongyu committed Nov 1, 2021
1 parent ffc8d70 commit 326f4de
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions cmd/test_yaml_to_sql/etc/Entity.PlfTblUser.dcm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ Table:
created_at:
type: datetime
nullable: false
generator: default current_timestamp
# generator: default current_timestamp 部分数据库不支持则不写
comment: 创建记录的时间,默认自动创建

updated_at:
type: datetime
nullable: false
generator: on update current_timestamp
# generator: on update current_timestamp 部分数据库不支持则不写
comment: 上一次更新时间,默认自动更新
4 changes: 2 additions & 2 deletions cmd/test_yaml_to_sql/etc/Entity.PlfTblUser2.dcm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ Table:
created_at:
type: datetime
nullable: false
generator: default current_timestamp
# generator: default current_timestamp 部分数据库不支持则不写
comment: 创建记录的时间,默认自动创建

updated_at:
type: datetime
nullable: false
generator: on update current_timestamp
# generator: on update current_timestamp 部分数据库不支持则不写
comment: 上一次更新时间,默认自动更新
4 changes: 2 additions & 2 deletions cmd/test_yaml_to_sql/etc/Entity.PlfTblUser3.dcm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ Table:
created_at:
type: datetime
nullable: false
generator: default current_timestamp
# generator: default current_timestamp 部分数据库不支持则不写
comment: 创建记录的时间,默认自动创建

updated_at:
type: datetime
nullable: false
generator: on update current_timestamp
# generator: on update current_timestamp 部分数据库不支持则不写
comment: 上一次更新时间,默认自动更新
4 changes: 2 additions & 2 deletions cmd/test_yaml_to_sql/etc/Entity.PlfTblUser4.dcm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ Table:
created_at:
type: datetime
nullable: false
generator: default current_timestamp
# generator: default current_timestamp 部分数据库不支持则不写
comment: 创建记录的时间,默认自动创建

updated_at:
type: datetime
nullable: true
generator: on update current_timestamp
# generator: on update current_timestamp 部分数据库不支持则不写
comment: 上一次更新时间,默认自动更新

0 comments on commit 326f4de

Please sign in to comment.