Advertisement
Guest User

Untitled

a guest
Sep 14th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1.  
  2.  
  3. Party:
  4. columns:
  5. is_active: {type: boolean, default: true}
  6. Company
  7. email: {type: string(255), notnull: true, unique: true}
  8. password: {type: string(255), notnull: true}
  9. dm_user_id: {type: integer(11)}
  10. relations:
  11. User:
  12. class: DmUser
  13. type: one
  14. foreignType: one
  15. local: dm_user_id
  16. foreign: id
  17. foreignAlias: Party
  18.  
  19. IrdvPartyState:
  20. columns:
  21. party_id: {type: integer(11), notnull: true}
  22. state: {type: enum, values: [STATE_ACTIVATED, STATE_DEACTIVATED], default: STATE_ACTIVATED}
  23. from_date: {type: timestamp}
  24. to_date: {type: timestamp}
  25. relations:
  26. Party:
  27. class: IrdvParty
  28. type: one
  29. foreignType: many
  30. local: party_id
  31. foreign: id
  32. foreignAlias: States
  33.  
  34. DmUser:
  35. columns:
  36. party_type: {type: string(40)}
  37. party_id: {type: integer(11)}
  38.  
  39.  
  40.  
  41. Person:
  42. inheritance:
  43. type: concrete
  44. extends: Party
  45. columns:
  46. birth_day: {type: date}
  47. first_name: {type: string(255), notnull: true}
  48. last_name: {type: string(255), notnull: true}
  49.  
  50.  
  51. Customer:
  52. inheritance:
  53. type: concrete
  54. extends: Person
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement