Няма описание
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config_environment.go 738B

12345678910111213141516171819202122
  1. package tables
  2. import (
  3. "git.x2erp.com/qdy/go-db/sqldef"
  4. )
  5. func init() {
  6. sqldef.AddRegistration(func(r *sqldef.Registry) {
  7. // 环境表
  8. tb := sqldef.NewTable("config_environment", "环境表").
  9. ID("config_environment_id", 8).NotNull().Comment("环境编码,主键").End().
  10. String("env_name", 64).NotNull().Comment("环境名称").End().
  11. String("description", 64).Comment("环境描述").End().
  12. String("creator", 32).NotNull().Comment("创建人").End().
  13. DateTime("created_at").NotNull().Default("CURRENT_TIMESTAMP").Comment("创建时间").End().
  14. DateTime("updated_at").Default("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP").Comment("更新时间").End()
  15. // 注册表
  16. r.RegisterTable(tb.Build())
  17. })
  18. }