schema.yml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. propel:
  2. _attributes:
  3. package: lib.model
  4. defaultIdMethod: native
  5. actions:
  6. _attributes: { phpName: ActionsTable }
  7. id: { type: INTEGER, size: '11', primaryKey: true, autoIncrement: true, required: true }
  8. action: { type: VARCHAR, size: '20', required: true }
  9. category:
  10. _attributes: { phpName: CategoryTable }
  11. id: { type: INTEGER, size: '11', primaryKey: true, autoIncrement: true, required: true }
  12. name: { type : VARCHAR, size: '25', required: true }
  13. class:
  14. _attributes: { phpName: ClassTable }
  15. id: { type: INTEGER, size: '11', primaryKey: true, required: true }
  16. name: { type: VARCHAR, size: '20', required: true }
  17. faculty: { type: CHAR, size: '4', required: true }
  18. profession_id: { type: INTEGER, size: '11', required: false, onDelete: setnull }
  19. _foreignKeys:
  20. -
  21. foreignTable: professions
  22. references:
  23. - { local: profession_id, foreign: id }
  24. history:
  25. _attributes: { phpName: HistoryTable }
  26. daytime: { type: TIMESTAMP, required: true }
  27. user: { type: VARCHAR, size: '25', required: true }
  28. gid: { type: VARCHAR, size: '15', required: true }
  29. action_id: { type: INTEGER, size: '11', required: true }
  30. arguments: { type: LONGVARCHAR, required: false }
  31. return_code: { type: INTEGER, size: '11' }
  32. id: { type: INTEGER, size: '11', primaryKey: true, required: true }
  33. _foreignKeys:
  34. -
  35. foreignTable: actions
  36. references:
  37. - { local: action_id, foreign: id }
  38. nightload:
  39. _attributes: { phpName: NightloadTable }
  40. id: { type: INTEGER, size: '11', primaryKey: true, autoIncrement: true, required: true }
  41. user: { type: VARCHAR, size: '25', required: true }
  42. begin: { type: TIMESTAMP, required: true }
  43. finish: { type: TIMESTAMP, required: true }
  44. state: { type: VARCHAR, size: '15', required: true }
  45. url: { type: LONGVARCHAR, required: true }
  46. protocol: { type: VARCHAR, size: '10', required: false }
  47. path: { type: LONGVARCHAR, required: true }
  48. links:
  49. _attributes: { phpName: LinksTable }
  50. id: { type: INTEGER, size: '11', primaryKey: true, autoIncrement: true, required: true }
  51. module_name: { type: LONGVARCHAR, required: true }
  52. action_name: { type: LONGVARCHAR, required: true }
  53. name: { type: LONGVARCHAR, required: true }
  54. created_at: { type: TIMESTAMP, required: true }
  55. permissions:
  56. _attributes: { phpName: PermissionsTable }
  57. id: { type: INTEGER, size: '11', primaryKey: true, autoIncrement: true, required: true }
  58. link_id: { type: INTEGER, size: '11', required: true }
  59. gid: { type: VARCHAR, size: '15', reqired: true }
  60. mode: { type: CHAR, required: true }
  61. change_at: { type: TIMESTAMP, required: true }
  62. change_login: { type: VARCHAR, size: '25', required: true }
  63. _foreignKeys:
  64. -
  65. foreignTable: links
  66. references:
  67. - { local: link_id, foreign: id }
  68. printings:
  69. _attributes: { phpName: PrintingsTable }
  70. id: { type: INTEGER, size: '11', primaryKey: true, autoIncrement: true, required: true }
  71. user: { type: VARCHAR, size: '25', required: true }
  72. daytime: { type: TIMESTAMP, required: true }
  73. cost: { type: INTEGER, size: '10', required: false }
  74. pages: { type: INTEGER, size: '10', required: true, defaultValue: '1' }
  75. professions:
  76. _attributes: { phpName: ProfessionsTable }
  77. id: { type: INTEGER, size: '11', primaryKey: true, required: true }
  78. name: { type: VARCHAR, size: '20', required: true }
  79. registrationRequests:
  80. _attributes: { phpName: RegistrationRequestsTable }
  81. id: { type: INTEGER, size: '20', primaryKey: true, autoIncrement: true, required: true }
  82. name: { type: LONGVARCHAR, required: true }
  83. daytime: { type: TIMESTAMP, required: true }
  84. dataLocation: { type: LONGVARCHAR, required: true }
  85. registrations:
  86. _attributes: { phpName: RegistrationsTable }
  87. daytime: { type: TIMESTAMP, required: true }
  88. staff_login: { type: VARCHAR, size: '25', required: true }
  89. registered_login: { type: VARCHAR, size: '25', primaryKey: true, required: true }
  90. upload:
  91. _attributes: { phpName: UploadTable }
  92. id: { type: INTEGER, size: '11', primaryKey: true, autoIncrement: true, required: true }
  93. user: { type: VARCHAR, size: '25', required: true }
  94. daytime: { type: TIMESTAMP, required: true }
  95. url: { type: LONGVARCHAR, required: true }
  96. filename: { type: LONGVARCHAR, required: true }
  97. filesize: { type: INTEGER, size: '10', required: true }
  98. state: { type: CHAR, required: true }
  99. description: { type: LONGVARCHAR }
  100. category_id: { type: INTEGER, size: '11', required: true }
  101. _foreignKeys:
  102. -
  103. foreignTable: category
  104. references:
  105. - { local: category_id, foreign: id }