Guest User

Untitled

a guest
Jul 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. Category:
  2. actAs:
  3. NestedSet:
  4. hasManyRoots: true
  5. rootColumnName: root_id
  6. columns:
  7. title:
  8. type: string(150)
  9. description:
  10. type: string(255)
  11. position:
  12. type: integer(4)
  13.  
  14. Post:
  15. columns:
  16. id:
  17. type: integer(4)
  18. primary: true
  19. language_id:
  20. type: integer(4)
  21. primary: true
  22. language_code:
  23. type: string(3)
  24. author_id:
  25. type: integer(4)
  26. title:
  27. type: string(100)
  28. description:
  29. type: string(255)
  30. content:
  31. type: string(3000)
  32. status:
  33. type: enum
  34. values: [published, private, pending, inherit]
  35. page_type:
  36. type: enum
  37. values: [active, revision]
  38. position:
  39. type: integer(4)
  40. date_added:
  41. type: timestamp
  42. format: Y-m-d H:i:s
  43. relations:
  44. Language:
  45. class: Language
  46. local: language_id
  47. foreign: id
  48. foreignAlias: postLanguage
  49. Categories:
  50. class: Category
  51. local: post_id
  52. foreign: category_id
  53. foreignAlias: Posts
  54. refClass: PostCategoryXref
  55.  
  56. PostCategoryXref:
  57. columns:
  58. post_id:
  59. type: integer(4)
  60. category_id:
  61. type: integer
  62. relations:
  63. Post:
  64. local: post_id
  65. foreign: id
  66. onDelete: CASCADE
  67. Category:
  68. local: category_id
  69. foreign: id
  70. onDelete: CASCADE
Add Comment
Please, Sign In to add comment