Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Post:
- actAs: [ Timestampable, Sortable ]
- columns:
- title: { type: string(255), notnull: true, unique: true }
- excerpt: { type: string(800) }
- body: { type: clob, extra: markdown }
- image_id: { type: integer }
- relations:
- Image:
- class: DmMedia
- local: image_id
- Comment:
- actAs: [ Timestampable ]
- columns:
- post_id: { type: integer, notnull: true }
- author: { type: string(255), notnull: true }
- body: { type: clob }
- relations:
- Post:
- foreignAlias: Comments
- onDelete: CASCADE
- Category:
- columns:
- name: { type: string(255), notnull: true }
- body: { type: clob, extra: markdown }
- Product:
- columns:
- category_id: { type: integer, notnull: true }
- name: { type: string(255), notnull: true }
- body: { type: clob, extra: markdown }
- relations:
- Category:
- foreignAlias: Products
- MyUser2:
- columns:
- name: string(30)
- relations:
- # ...
- Groups:
- class: MyGroup2
- local: user_id
- foreign: group_id
- refClass: UserGroup
- MyGroup2:
- tableName: groups
- columns:
- name: string(30)
- relations:
- Users:
- class: MyUser2
- local: group_id
- foreign: user_id
- refClass: UserGroup
- UserGroup:
- columns:
- user_id:
- type: integer
- primary: true
- group_id:
- type: integer
- primary: true
- Entity:
- columns:
- username: string(20)
- password: string(16)
- created_at: timestamp
- updated_at: timestamp
- Child1:
- inheritance:
- extends: Entity
- type: column_aggregation
- keyField: type
- keyValue: 1
- Child2:
- inheritance:
- extends: Entity
- type: column_aggregation
- keyField: type
- keyValue: 2
- Child3:
- inheritance:
- extends: Entity
- type: column_aggregation
- keyField: type
- keyValue: 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement