Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1.  
  2. Piece:
  3. columns:
  4. id: { type: integer(4), unsigned: true, notnull: true, autoincrement: true, primary: true }
  5. title: { type: string(255), notnull: true }
  6. year: { type: integer(4), range: [1900,2100] }
  7. instrumentation: { type: string(255), notnull: false }
  8. composer_id: { type: integer(4), unsigned: true, notnull: true }
  9. notes: { type: clob, notnull: false }
  10. sound_url: { type: string(255), notnull: false }
  11. actAs:
  12. Timestampable: ~
  13. Sluggable:
  14. unique: true
  15. fields: [ title ]
  16. canUpdate: true
  17. indexes:
  18. composer_idx:
  19. fields: [ composer_id ]
  20. relations:
  21. Composer:
  22. class: Person
  23. local: composer_id
  24. foreign: id
  25. foreignAlias: Pieces
  26. Flags:
  27. class: Flag
  28. local: piece_id
  29. foreign: flag_id
  30. refClass: PieceFlag
  31.  
  32.  
  33. Flag:
  34. columns:
  35. id: { type: integer(4), unsigned: true, notnull: true, autoincrement: true, primary: true }
  36. longname: { type: string(255), notnull: true }
  37. shortname: { type: string(255), notnull: true }
  38. relations:
  39. Pieces:
  40. class: Piece
  41. local: flag_id
  42. foreign: piece_id
  43. refClass: PieceFlag
  44.  
  45.  
  46. PieceFlag:
  47. columns:
  48. piece_id: { type: integer(4), unsigned: true, notnull: true, primary: true }
  49. flag_id: { type: integer(4), unsigned: true, notnull: true, primary: true }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement