Advertisement
Guest User

Untitled

a guest
May 1st, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. # config/doctrine/schema.yml
  2. Reve:
  3. actAs:
  4. Timestampable: ~
  5. columns:
  6. id:
  7. type: integer(4)
  8. unsigned: true
  9. autoincrement: true
  10. primary: true
  11. reve:
  12. type: text
  13. notnull: true
  14. auteur:
  15. type: integer(4)
  16. notnull: true
  17. categorie:
  18. type: integer(4)
  19. unsigned: true
  20. notnull: true
  21. nbVotePlus:
  22. type: integer(4)
  23. notnull: true
  24. default: 0
  25. nbVoteMoins:
  26. type: integer(4)
  27. notnull: true
  28. default: 0
  29. ratio:
  30. type: double
  31. notnull: true
  32. default: 0
  33. comment: 'ratio de nbVotePlus/nbVoteMoins'
  34. etat:
  35. type: enum
  36. values: [0, 1, 2, 3]
  37. notnull: true
  38. default: 0
  39. comment: '0:creation ; 1: en moderation; 2 : accept� : 3 : supprimer'
  40. relations:
  41. Categorie:
  42. local: categorie
  43. foreign: id
  44. foreignAlias: Reves
  45. indexes:
  46. myindex:
  47. fields: [categorie]
  48.  
  49. RevesVote:
  50. actAs:
  51. Timestampable: ~
  52. columns:
  53. id:
  54. type: integer(4)
  55. unsigned: true
  56. primary: true
  57. id_reve:
  58. type: integer(4)
  59. unsigned: true
  60. unique: true
  61. vote_ip:
  62. type: string(40)
  63. notnull: true
  64. unique: true
  65. vote_user:
  66. type: integer(4)
  67. notnull: true
  68. default: 0
  69. unique: true
  70. relations:
  71. Reve:
  72. local: id_reve
  73. foreign: id
  74. foreignAlias: Votes
  75. indexes:
  76. myindex:
  77. fields: [id_reve]
  78.  
  79. Utilisateur:
  80. actAs:
  81. Timestampable: ~
  82. columns:
  83. id:
  84. type: integer(4)
  85. unsigned: true
  86. autoincrement: true
  87. primary: true
  88. username:
  89. type: string(18)
  90. notnull: true
  91. password:
  92. type: string(40)
  93. notnull: true
  94. email:
  95. type: string(255)
  96. notnull: true
  97. grade:
  98. type: enum
  99. values: [0, 1, 2, 9]
  100. notnull: true
  101. comment: '0 : Utilisateur, 1 : Membres, 2 : Moderateurs, 9 : Admin'
  102. lang:
  103. type: string(50)
  104. notnull: true
  105. default: 'francais'
  106. nbVotePlus:
  107. type: integer(11)
  108. notnull: true
  109. default: 0
  110. nbVoteMoins:
  111. type: integer(11)
  112. notnull: true
  113. default: 0
  114.  
  115. Categorie:
  116. actAs:
  117. Timestampable: ~
  118. Sluggable:
  119. fields: [name]
  120. columns:
  121. id:
  122. type: integer(4)
  123. unsigned: true
  124. autoincrement: true
  125. primary: true
  126. name:
  127. type: string(22)
  128. notnull: true
  129. relations:
  130. Reve:
  131. local: id
  132. foreign: categorie
  133. foreignAlias: Categories
  134. indexes:
  135. myindex:
  136. fields: [id]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement