Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Category:
- actAs:
- Timestampable: ~
- NestedSet:
- hasManyRoots: true
- rootColumnName: root_id
- columns:
- name: { type: string(255), notnull: true, unique: true }
- description: { type: clob, extra: markdown }
- photo: { type: integer }
- is_active: { type: boolean, notnull: true, default: true }
- relations:
- Photo:
- class: DmMedia
- local: photo
- onDelete: RESTRICT
- Product:
- actAs: [ Timestampable, Sortable, DmGallery ]
- columns:
- category: { type: integer, notnull: true }
- article: { type: string(255), notnull: true, unique: true }
- name: { type: string(255), notnull: true, unique: true }
- content: { type: string(255) }
- weight: { type: string(255) }
- origin: { type: string(255) }
- vendor: { type: string(255) }
- body: { type: clob, extra: markdown }
- photo: { type: integer }
- price: { type: float, notnull: true, default: 0 }
- is_active: { type: boolean, default: 1 }
- hide_price: { type: boolean, default: 0 }
- relations:
- Photo:
- class: DmMedia
- local: photo
- onDelete: RESTRICT
- Category:
- class: Category
- local: category
- onDelete: CASCADE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement