Advertisement
Guest User

Untitled

a guest
May 21st, 2017
585
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.14 KB | None | 0 0
  1. ---
  2. detect_relations: true  
  3.  
  4. FwlUser:
  5.  actAs:
  6.   Timestampable: ~
  7.  columns:
  8.   id:
  9.    type: integer
  10.    notnull: true
  11.    primary: true
  12.    autoincrement: true
  13.    unique: true
  14.   username:
  15.    type: string(50)
  16.    notnull: true
  17.    unique: true
  18.   password:
  19.    type: string(32)
  20.    notnull: true
  21.   salt:
  22.    type: string(5)
  23.    notnull: true
  24.   email:
  25.    type: string(100)
  26.    notnull: true
  27.   name_first:
  28.    type: string(100)
  29.    notnull: true
  30.   name_last:
  31.    type: string(100)
  32.    notnull: true
  33.   name_middle:
  34.    type: string(100)
  35.   country:
  36.    type: integer
  37.   state:
  38.    type: varchar(200)
  39.   city:
  40.    type: varchar(200)
  41.   address:
  42.    type: varchar(200)
  43.   address2:
  44.    type: varchar(200)
  45.   zipcode:
  46.    type: varchar(20)
  47.   phone:
  48.    type: varchar(20)
  49.   status:
  50.    type: enum
  51.    values: [active,suspended,cancelled,unverified,banned,moderated]
  52.  
  53. FwlProject:
  54.  actAs:
  55.   Timestampable: ~
  56.  columns:
  57.   id:
  58.    type: integer
  59.    notnull: true
  60.    primary: true
  61.    autoincrement: true
  62.    unique: true
  63.   title:
  64.    type: string(255)
  65.    notnull: true
  66.   description:
  67.    type: clob
  68.    notnull: true
  69.   visible:
  70.    type: boolean
  71.    default: true
  72.   date_starts:
  73.    type: timestamp
  74.    notnull: true
  75.   date_ends:
  76.    type: timestamp
  77.    notnull: true
  78.   user_id:
  79.    type: integer
  80.    notnull: true
  81.   status:
  82.    type: enum
  83.    values: [draft,open,closed,expired,delisted,wait_approval,approval_accepted,frozen,finished,archived]
  84.  relations:
  85.   Categories:
  86.    class: FwlCategory
  87.    refClass: FwlProjectCategory
  88.    foreignAlias: ProjectCategories
  89.  
  90. FwlCategory:
  91.  actAs:
  92.   Timestampable: ~
  93.  columns:
  94.   id:
  95.    type: integer
  96.    notnull: true
  97.    primary: true
  98.    autoincrement: true
  99.    unique: true
  100.   parent_id:
  101.    type: integer
  102.    notnull: true
  103.    default: 0
  104.   title:
  105.    type: string(255)
  106.    notnull: true
  107.   visible:
  108.    type: boolean
  109.    default: true
  110.   sorting:
  111.    type: integer
  112.    default: 1
  113.  
  114. FwlProjectCategory:
  115.  columns:
  116.   project_id:
  117.    type: integer
  118.    primary: true
  119.   category_id:
  120.    type: integer
  121.    primary: true
  122.  relations:
  123.   FwlProject:
  124.    local: project_id
  125.    foreignAlias: FwlProjectCategories
  126.   FwlCategory:
  127.    local: category_id
  128.    foreignAlias: FwlProjectCategories
  129.  
  130. --- fixtures
  131. ---
  132. FwlUser:
  133.   admin:
  134.     id: 1
  135.     username: admin
  136.     salt: !TOIR
  137.     password: 25dfe310420a57feb2a29edc691ba23f
  138.     email: serg.buslovsky@gmail.com
  139.     name_first: Serg
  140.     name_last: Buslovsky
  141.     status: active
  142.   user1:
  143.     id: 2
  144.     username: user1
  145.     salt: !T23A
  146.     password: 3932904a39f13e6c1add64d35c6cee61
  147.     email: user1@gmail.com
  148.     name_first: User
  149.     name_last: First
  150.     status: active
  151.  
  152. FwlCategory:
  153.   design:
  154.     id: 1
  155.     title: Design
  156.   logo_design:
  157.     id: 4
  158.     parent_id: 1
  159.     title: Logo Design
  160.   programming:
  161.     id: 2
  162.     title: Programming
  163.   management:
  164.     id: 3
  165.     title: Management
  166.  
  167. FwlProject:
  168.   project1:
  169.     title: First Test Project
  170.     description: |
  171.      some info
  172.      about project1
  173.     user_id: 2
  174.     Categories: [design, logo_design]
  175.   project2:
  176.     title: Second Test Project
  177.     description: |
  178.      about project2
  179.      some info
  180.     user_id: 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement