Advertisement
Guest User

Untitled

a guest
May 15th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 12.51 KB | None | 0 0
  1. ---
  2. detect_relations: true
  3. options:
  4.   collate: latin1_swedish_ci
  5.   charset: latin1
  6.   type: InnoDB
  7.  
  8. announcement:
  9.   actAs:
  10.     I18n:
  11.       fields: [title, body, summary, link]
  12.   columns:
  13.     id:
  14.       type: integer(8)
  15.       primary: true
  16.       notnull: true
  17.       autoincrement: true
  18.     startdate:
  19.       type: date
  20.       default: null
  21.     enddate:
  22.       type: date
  23.       default: null
  24.     live:
  25.       type: integer(1)
  26.       default: '1'
  27.     announcement_level_id:
  28.       type: integer(8)
  29.       default: null
  30.     created_at:
  31.       type: timestamp
  32.       notnull: true
  33.       default: '0000-00-00 00:00:00'
  34.     updated_at:
  35.       type: timestamp
  36.       notnull: true
  37.       default: '0000-00-00 00:00:00'
  38.     title:
  39.       type: string(255)
  40.       default: null
  41.     body:
  42.       type: clob
  43.       default: null
  44.     summary:
  45.       type: clob
  46.       default: null
  47.     link:
  48.       type: string(255)
  49.       default: null
  50.   relations:
  51.     announcementLevel:
  52.       class: announcementLevel
  53.       local: announcement_level_id
  54.       foreign: id
  55.       foreignAlias: announcements
  56.       onDelete: cascade
  57.   indexes:
  58.     announcement_level_id_idx:
  59.       fields: [announcement_level_id]
  60.   options:
  61.     charset: latin1
  62.  
  63. announcementLevel:
  64.   tableName: announcement_level
  65.   columns:
  66.     id:
  67.       type: integer(8)
  68.       primary: true
  69.       notnull: true
  70.       autoincrement: true
  71.     title:
  72.       type: string(255)
  73.       default: null
  74.   options:
  75.     charset: latin1
  76.  
  77. calendar:
  78.   actAs:
  79.     I18n:
  80.       fields: [title, body]
  81.   columns:
  82.     id:
  83.       type: integer(8)
  84.       primary: true
  85.       notnull: true
  86.       autoincrement: true
  87.     live:
  88.       type: integer(1)
  89.       default: '1'
  90.     startdate:
  91.       type: date
  92.       default: null
  93.     enddate:
  94.       type: date
  95.       default: null
  96.     calendar_category_id:
  97.       type: integer(8)
  98.       default: null
  99.     created_at:
  100.       type: timestamp
  101.       notnull: true
  102.       default: '0000-00-00 00:00:00'
  103.     updated_at:
  104.       type: timestamp
  105.       notnull: true
  106.       default: '0000-00-00 00:00:00'
  107.     title:
  108.       type: string(255)
  109.       default: null
  110.     body:
  111.       type: clob
  112.       default: null
  113.   relations:
  114.     calendarCategory:
  115.       class: calendarCategory
  116.       local: calendar_category_id
  117.       foreign: id
  118.       foreignAlias: calendars
  119.       onDelete: cascade
  120.   indexes:
  121.     calendar_category_id_idx:
  122.       fields: [calendar_category_id]
  123.   options:
  124.     charset: latin1
  125.  
  126. calendarCategory:
  127.   tableName: calendar_category
  128.   actAs:
  129.     I18n:
  130.       fields: [title, slug]
  131.   columns:
  132.     id:
  133.       type: integer(8)
  134.       primary: true
  135.       notnull: true
  136.       autoincrement: true
  137.     title:
  138.       type: string(255)
  139.       default: null
  140.     slug:
  141.       type: string(255)
  142.       default: null
  143.   options:
  144.     charset: latin1
  145.  
  146. file:
  147.   columns:
  148.     id:
  149.       type: integer(8)
  150.       primary: true
  151.       notnull: true
  152.       autoincrement: true
  153.     title:
  154.       type: string(255)
  155.       default: null
  156.     filename:
  157.       type: string(255)
  158.       default: null
  159.     created_at:
  160.       type: timestamp
  161.       notnull: true
  162.       default: '0000-00-00 00:00:00'
  163.     updated_at:
  164.       type: timestamp
  165.       notnull: true
  166.       default: '0000-00-00 00:00:00'
  167.   options:
  168.     charset: latin1
  169.  
  170. migrationVersion:
  171.   tableName: migration_version
  172.   columns:
  173.     version:
  174.       type: integer(4)
  175.       default: null
  176.   options:
  177.     charset: latin1
  178.  
  179. newsletter:
  180.   columns:
  181.     id:
  182.       type: integer(8)
  183.       primary: true
  184.       notnull: true
  185.       autoincrement: true
  186.     title:
  187.       type: string(255)
  188.       default: null
  189.     file:
  190.       type: string(255)
  191.       default: null
  192.     publish:
  193.       type: date
  194.       default: null
  195.     live:
  196.       type: integer(1)
  197.       default: '1'
  198.     created_at:
  199.       type: timestamp
  200.       notnull: true
  201.       default: '0000-00-00 00:00:00'
  202.     updated_at:
  203.       type: timestamp
  204.       notnull: true
  205.       default: '0000-00-00 00:00:00'
  206.   options:
  207.     charset: latin1
  208.  
  209. page:
  210.   actAs:
  211.     I18n:
  212.       fields: [title, body, slug]
  213.   columns:
  214.     id:
  215.       type: integer(8)
  216.       primary: true
  217.       notnull: true
  218.       autoincrement: true
  219.     keywords:
  220.       type: string(255)
  221.       default: null
  222.     description:
  223.       type: string(255)
  224.       default: null
  225.     live:
  226.       type: integer(1)
  227.       default: '1'
  228.     template:
  229.       type: string(255)
  230.       default: null
  231.     created_at:
  232.       type: timestamp
  233.       notnull: true
  234.       default: '0000-00-00 00:00:00'
  235.     updated_at:
  236.       type: timestamp
  237.       notnull: true
  238.       default: '0000-00-00 00:00:00'
  239.     page_category_id:
  240.       type: integer(4)
  241.       default: null
  242.     title:
  243.       type: string(255)
  244.       notnull: true
  245.       default: ''
  246.     body:
  247.       type: clob
  248.       default: null
  249.     slug:
  250.       type: string(255)
  251.       default: null
  252.   indexes:
  253.     page_category_id_idx:
  254.       fields: [page_category_id]
  255.   options:
  256.     charset: latin1
  257.  
  258. pageCategory:
  259.   tableName: page_category
  260.   columns:
  261.     id:
  262.       type: integer(8)
  263.       primary: true
  264.       notnull: true
  265.       autoincrement: true
  266.     title:
  267.       type: string(255)
  268.       default: null
  269.     slug:
  270.       type: string(255)
  271.       default: null
  272.   indexes:
  273.     sluggable_idx:
  274.       fields:
  275.         slug:
  276.           sorting: ASC
  277.         title:
  278.           sorting: ASC
  279.       type: unique
  280.   options:
  281.     charset: latin1
  282.  
  283. photo:
  284.   actAs:
  285.     I18n:
  286.       fields: [title, caption]
  287.   columns:
  288.     id:
  289.       type: integer(8)
  290.       primary: true
  291.       notnull: true
  292.       autoincrement: true
  293.     file:
  294.       type: string(150)
  295.       default: null
  296.     frontpage:
  297.       type: integer(1)
  298.       default: null
  299.     live:
  300.       type: integer(1)
  301.       default: '1'
  302.     photo_album_id:
  303.       type: integer(8)
  304.       default: null
  305.     created_at:
  306.       type: timestamp
  307.       notnull: true
  308.       default: '0000-00-00 00:00:00'
  309.     updated_at:
  310.       type: timestamp
  311.       notnull: true
  312.       default: '0000-00-00 00:00:00'
  313.     title:
  314.       type: string(255)
  315.       default: null
  316.     caption:
  317.       type: string(255)
  318.       default: null
  319.   relations:
  320.     photoAlbum:
  321.       class: photoAlbum
  322.       local: photo_album_id
  323.       foreign: id
  324.       foreignAlias: photoes
  325.       onDelete: cascade
  326.   indexes:
  327.     photo_album_id_idx:
  328.       fields: [photo_album_id]
  329.   options:
  330.     charset: latin1
  331.  
  332. photoAlbum:
  333.   tableName: photo_album
  334.   actAs:
  335.     I18n:
  336.       fields: [title, slug]
  337.   columns:
  338.     id:
  339.       type: integer(8)
  340.       primary: true
  341.       notnull: true
  342.       autoincrement: true
  343.     created_at:
  344.       type: timestamp
  345.       notnull: true
  346.       default: '0000-00-00 00:00:00'
  347.     updated_at:
  348.       type: timestamp
  349.       notnull: true
  350.       default: '0000-00-00 00:00:00'
  351.     live:
  352.       type: integer(1)
  353.       default: '1'
  354.     title:
  355.       type: string(255)
  356.       default: null
  357.     slug:
  358.       type: string(255)
  359.       default: null
  360.   options:
  361.     charset: latin1
  362.  
  363. sfGuardGroup:
  364.   tableName: sf_guard_group
  365.   columns:
  366.     id:
  367.       type: integer(4)
  368.       primary: true
  369.       notnull: true
  370.       autoincrement: true
  371.     name:
  372.       type: string(255)
  373.       unique: true
  374.       default: null
  375.     description:
  376.       type: clob(65535)
  377.       default: null
  378.     created_at:
  379.       type: timestamp
  380.       notnull: true
  381.       default: '0000-00-00 00:00:00'
  382.     updated_at:
  383.       type: timestamp
  384.       notnull: true
  385.       default: '0000-00-00 00:00:00'
  386.   options:
  387.     charset: latin1
  388.  
  389. sfGuardGroupPermission:
  390.   tableName: sf_guard_group_permission
  391.   columns:
  392.     group_id:
  393.       type: integer(4)
  394.       primary: true
  395.       notnull: true
  396.       default: '0'
  397.     permission_id:
  398.       type: integer(4)
  399.       primary: true
  400.       notnull: true
  401.       default: '0'
  402.     created_at:
  403.       type: timestamp
  404.       notnull: true
  405.       default: '0000-00-00 00:00:00'
  406.     updated_at:
  407.       type: timestamp
  408.       notnull: true
  409.       default: '0000-00-00 00:00:00'
  410.   relations:
  411.     group:
  412.       class: sfGuardGroup
  413.       local: group_id
  414.       foreign: id
  415.       foreignAlias: sf_guard_group_permissions
  416.       onDelete: cascade
  417.     permission:
  418.       class: sfGuardPermission
  419.       local: permission_id
  420.       foreign: id
  421.       foreignAlias: sf_guard_group_permissions
  422.       onDelete: cascade
  423.   indexes:
  424.     sf_guard_group_permission_permission_id_sf_guard_permission_id:
  425.       fields: [permission_id]
  426.   options:
  427.     charset: latin1
  428.  
  429. sfGuardPermission:
  430.   tableName: sf_guard_permission
  431.   columns:
  432.     id:
  433.       type: integer(4)
  434.       primary: true
  435.       notnull: true
  436.       autoincrement: true
  437.     name:
  438.       type: string(255)
  439.       unique: true
  440.       default: null
  441.     description:
  442.       type: clob(65535)
  443.       default: null
  444.     created_at:
  445.       type: timestamp
  446.       notnull: true
  447.       default: '0000-00-00 00:00:00'
  448.     updated_at:
  449.       type: timestamp
  450.       notnull: true
  451.       default: '0000-00-00 00:00:00'
  452.   options:
  453.     charset: latin1
  454.  
  455. sfGuardRememberKey:
  456.   tableName: sf_guard_remember_key
  457.   columns:
  458.     id:
  459.       type: integer(4)
  460.       primary: true
  461.       notnull: true
  462.       autoincrement: true
  463.     user_id:
  464.       type: integer(4)
  465.       default: null
  466.     remember_key:
  467.       type: string(32)
  468.       default: null
  469.     ip_address:
  470.       type: string(50)
  471.       primary: true
  472.       notnull: true
  473.       default: ''
  474.     created_at:
  475.       type: timestamp
  476.       notnull: true
  477.       default: '0000-00-00 00:00:00'
  478.     updated_at:
  479.       type: timestamp
  480.       notnull: true
  481.       default: '0000-00-00 00:00:00'
  482.   relations:
  483.     user:
  484.       class: sfGuardUser
  485.       local: user_id
  486.       foreign: id
  487.       foreignAlias: sf_guard_remember_keies
  488.       onDelete: cascade
  489.   indexes:
  490.     user_id_idx:
  491.       fields: [user_id]
  492.   options:
  493.     charset: latin1
  494.  
  495. sfGuardUser:
  496.   tableName: sf_guard_user
  497.   columns:
  498.     id:
  499.       type: integer(4)
  500.       primary: true
  501.       notnull: true
  502.       autoincrement: true
  503.     username:
  504.       type: string(128)
  505.       unique: true
  506.       notnull: true
  507.       default: ''
  508.     algorithm:
  509.       type: string(128)
  510.       notnull: true
  511.       default: 'sha1'
  512.     salt:
  513.       type: string(128)
  514.       default: null
  515.     password:
  516.       type: string(128)
  517.       default: null
  518.     is_active:
  519.       type: integer(1)
  520.       default: '1'
  521.     is_super_admin:
  522.       type: integer(1)
  523.       default: '0'
  524.     last_login:
  525.       type: timestamp
  526.       default: null
  527.     created_at:
  528.       type: timestamp
  529.       notnull: true
  530.       default: '0000-00-00 00:00:00'
  531.     updated_at:
  532.       type: timestamp
  533.       notnull: true
  534.       default: '0000-00-00 00:00:00'
  535.   indexes:
  536.     is_active_idx_idx:
  537.       fields: [is_active]
  538.   options:
  539.     charset: latin1
  540.  
  541. sfGuardUserGroup:
  542.   tableName: sf_guard_user_group
  543.   columns:
  544.     user_id:
  545.       type: integer(4)
  546.       primary: true
  547.       notnull: true
  548.       default: '0'
  549.     group_id:
  550.       type: integer(4)
  551.       primary: true
  552.       notnull: true
  553.       default: '0'
  554.     created_at:
  555.       type: timestamp
  556.       notnull: true
  557.       default: '0000-00-00 00:00:00'
  558.     updated_at:
  559.       type: timestamp
  560.       notnull: true
  561.       default: '0000-00-00 00:00:00'
  562.   relations:
  563.     group:
  564.       class: sfGuardGroup
  565.       local: group_id
  566.       foreign: id
  567.       foreignAlias: sf_guard_user_groups
  568.       onDelete: cascade
  569.     user:
  570.       class: sfGuardUser
  571.       local: user_id
  572.       foreign: id
  573.       foreignAlias: sf_guard_user_groups
  574.       onDelete: cascade
  575.   indexes:
  576.     sf_guard_user_group_group_id_sf_guard_group_id:
  577.       fields: [group_id]
  578.   options:
  579.     charset: latin1
  580.  
  581. sfGuardUserPermission:
  582.   tableName: sf_guard_user_permission
  583.   columns:
  584.     user_id:
  585.       type: integer(4)
  586.       primary: true
  587.       notnull: true
  588.       default: '0'
  589.     permission_id:
  590.       type: integer(4)
  591.       primary: true
  592.       notnull: true
  593.       default: '0'
  594.     created_at:
  595.       type: timestamp
  596.       notnull: true
  597.       default: '0000-00-00 00:00:00'
  598.     updated_at:
  599.       type: timestamp
  600.       notnull: true
  601.       default: '0000-00-00 00:00:00'
  602.   relations:
  603.     permission:
  604.       class: sfGuardPermission
  605.       local: permission_id
  606.       foreign: id
  607.       foreignAlias: sf_guard_user_permissions
  608.       onDelete: cascade
  609.     user:
  610.       class: sfGuardUser
  611.       local: user_id
  612.       foreign: id
  613.       foreignAlias: sf_guard_user_permissions
  614.       onDelete: cascade
  615.   indexes:
  616.     sf_guard_user_permission_permission_id_sf_guard_permission_id:
  617.       fields: [permission_id]
  618.   options:
  619.     charset: latin1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement