Guest User

Untitled

a guest
Jan 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1.  
  2. Instrument:
  3. columns:
  4. name: { type: string(255), notnull: true, unique: true }
  5. description: clob
  6.  
  7. Question:
  8. actAs: [ Taggable ]
  9. columns:
  10. name: string(255)
  11. type: string(255)
  12. instrument_id: { type: integer, notnull: true }
  13. item_number: { type: float, notnull: true }
  14. relations:
  15. Instrument:
  16. local: instrument_id
  17. foreign: id
  18. foreignAlias: Questions
  19.  
  20.  
  21. Test:
  22. actAs: [ Timestampable, sfDoctrineSlotTemplate ]
  23. columns:
  24. client_id: { type: integer, notnull: true }
  25. staff_id: { type: integer, notnull: true }
  26. instrument_id: { type: integer, notnull: true }
  27. relations:
  28. Instrument: { local: instrument_id, foreign: id, type: one, foreignType: many, foreignAlias: Tests }
  29. Staff: { local: staff_id, foreign: id, type: one, foreignType: many, foreignAlias: Tests }
  30. Client: { local: client_id, foreign: id, type: one, foreignType: many, foreignAlias: Tests }
  31.  
  32. Answer:
  33. columns:
  34. test_id: { type: integer, primary: true, notnull: true }
  35. question_id: { type: integer, primary: true, notnull: true }
  36. response: string
  37. relations:
  38. Test: { local: test_id, foreign: id, type: one, foreignType: many, foreignAlias: Answers }
  39. Question: { local: question_id, foreign: id, type: one, foreignType: many, foreignAlias: Answers }
Add Comment
Please, Sign In to add comment