role.yaml 967 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. kind: DataContainer
  2. spec:
  3. namespace: # 替换
  4. data_source: # 替换
  5. name: # 替换.roles
  6. spec:
  7. table_name: # 替换.roles
  8. columns:
  9. - name: id
  10. type: "varchar(32)"
  11. comment: id
  12. primary_key: true
  13. - name: name
  14. type: "varchar(256)"
  15. comment: 权限名称
  16. not_null: true
  17. index: true
  18. unique: true
  19. - name: description
  20. type: "text"
  21. comment: 权限描述
  22. not_null: true
  23. - name: create_user_id
  24. type: "varchar(32)"
  25. comment: 创建用户ID
  26. not_null: true
  27. - name: last_update_user_id
  28. type: "varchar(32)"
  29. comment: 最近更新用户ID
  30. not_null: true
  31. - name: created_time
  32. type: "timestamp with time zone"
  33. comment: 创建时间
  34. not_null: true
  35. - name: last_updated_time
  36. type: "timestamp with time zone"
  37. comment: 最近更新时间
  38. not_null: true