Advertisement
Guest User

Untitled

a guest
Jul 18th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
WHOIS 1.42 KB | None | 0 0
  1. Category:
  2.   actAs:
  3.     Timestampable: ~
  4.     NestedSet:
  5.       hasManyRoots: true
  6.       rootColumnName: root_id
  7.   columns:
  8.     name:             { type: string(255), notnull: true, unique: true }
  9.     description:      { type: clob, extra: markdown }
  10.     photo:            { type: integer }
  11.     is_active:        { type: boolean, notnull: true, default: true }
  12.   relations:
  13.     Photo:
  14.       class:          DmMedia
  15.       local:          photo
  16.       onDelete:       RESTRICT
  17.  
  18.  
  19. Product:
  20.   actAs:              [ Timestampable, Sortable, DmGallery ]
  21.   columns:
  22.     category:         { type: integer, notnull: true }
  23.     article:          { type: string(255), notnull: true, unique: true }
  24.     name:             { type: string(255), notnull: true, unique: true }
  25.     content:          { type: string(255) }
  26.     weight:           { type: string(255) }
  27.     origin:           { type: string(255) }
  28.     vendor:           { type: string(255) }
  29.     body:             { type: clob, extra: markdown }
  30.     photo:            { type: integer }
  31.     price:            { type: float, notnull: true, default: 0 }
  32.     is_active:        { type: boolean, default: 1 }
  33.     hide_price:       { type: boolean, default: 0 }
  34.   relations:
  35.     Photo:
  36.       class:          DmMedia
  37.       local:          photo
  38.       onDelete:       RESTRICT
  39.     Category:
  40.       class:          Category
  41.       local:          category
  42.       onDelete:       CASCADE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement