permission.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. kind: DataContainer
  2. spec:
  3. namespace: baize
  4. data_source: baize
  5. name: test.permissions
  6. spec:
  7. table_name: test.permissions
  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: resource
  24. type: "text"
  25. comment: resource
  26. not_null: true
  27. index: true
  28. unique_index: "permission_resource_action"
  29. - name: action
  30. type: "varchar(128)"
  31. comment: action
  32. not_null: true
  33. index: true
  34. unique_index: "permission_resource_action"
  35. - name: create_user_id
  36. type: "varchar(32)"
  37. comment: 创建用户ID
  38. not_null: true
  39. - name: last_update_user_id
  40. type: "varchar(32)"
  41. comment: 最近更新用户ID
  42. not_null: true
  43. - name: created_time
  44. type: "timestamp with time zone"
  45. comment: 创建时间
  46. not_null: true
  47. - name: last_updated_time
  48. type: "timestamp with time zone"
  49. comment: 最近更新时间
  50. not_null: true