user.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. kind: DataContainer
  2. spec:
  3. namespace: baize
  4. data_source: baize
  5. name: test.users
  6. spec:
  7. table_name: test.users
  8. columns:
  9. - name: id
  10. type: "varchar(32)"
  11. comment: id
  12. primary_key: true
  13. - name: user_name
  14. type: "varchar(256)"
  15. comment: 用户名
  16. not_null: true
  17. index: true
  18. unique: true
  19. - name: password
  20. type: "varchar(512)"
  21. comment: 密码
  22. not_null: true
  23. - name: name
  24. type: "varchar(256)"
  25. comment: 姓名
  26. not_null: true
  27. - name: phone
  28. type: "varchar(128)"
  29. comment: 手机号
  30. not_null: true
  31. - name: email
  32. type: "varchar(512)"
  33. comment: 邮箱
  34. not_null: true
  35. - name: token
  36. type: "text"
  37. comment: token
  38. not_null: true
  39. index: true
  40. - name: last_login_time
  41. type: "timestamp with time zone"
  42. comment: 最近登录时间
  43. not_null: true
  44. - name: created_time
  45. type: "timestamp with time zone"
  46. comment: 创建时间
  47. not_null: true
  48. - name: last_updated_time
  49. type: "timestamp with time zone"
  50. comment: 最近更新时间
  51. not_null: true