Advertisement
enkuso

qzBannerPlugin - schema.yml

May 13th, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.76 KB | None | 0 0
  1. options:
  2.   collate: utf8_unicode_ci
  3.   charset: utf8
  4.  
  5. qzBanner:
  6.   tableName:   qz_banner
  7.   actAs:
  8.     timestampable: ~
  9.   columns:
  10.     location_id:
  11.       type:    integer
  12.     description:
  13.       type:    string(256)
  14.     link:
  15.       type:    string(256)
  16.     image_path:
  17.       type:    string(128)
  18.       notnull: true
  19.     width:
  20.       type:    integer
  21.     height:
  22.       type:    integer
  23.     is_active:
  24.       type:    boolean
  25.       default: false
  26.   relations:
  27.     qzBannerLocation:
  28.       onDelete:    CASCADE
  29.       local:       location_id
  30.       foreign:     id
  31.       foreignAlias: Banners
  32.  
  33. qzBannerLocation:
  34.   tableName:   qz_banner_location
  35.   columns:
  36.     location:
  37.       type:    string(64)
  38.       notnull: true
  39.       unique:  true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement