1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
   |  
Section:
  tableName: dseSection
  columns:
    libelleSection:                      { type: string(40), notnull: true, unique: true }
    descriptionSection:                  { type: string(4000)}
    rangSection:                         { type: integer(10), notnull: true }
  relations:
    Code:                                { type: many, class: Code, local: id, foreign: section_id }
  options:
    type: MyISAM
 
Mode:
  tableName: dseMode
  columns:
    typemode:                            { type: string(40), notnull: true }
  relations:
    Code:                                { type: many, class: Code, local: id, foreign: mode_id }
    Item:                                { type: many, class: Item, local: id, foreign: mode_id }
  options:
    type: MyISAM
 
Item:
  tableName: dseItem
  columns:
    libelleItem:                         { type: string(4000), notnull: true }
    mode_id:                             { type: integer, notnull: true }
  relations:
    Code:                                { type: many, class: Code, local: id, foreign: item_id }
    Mode:                                { local: mode_id, foreign: id }	
  options:
    type: MyISAM
 
Code:
  tableName: dseCode
  columns:
    colonne_id:                          { type: integer, notnull: true }
    section_id:                          { type: integer, notnull: true }
    item_id:                             { type: integer, notnull: true }
    mode_id:                             { type: integer, notnull: true }
  relations:
    Colonne:                             { local: colonne_id, foreign: id, foreignAlias: Codes }
    Section:                             { local: section_id, foreign: id, foreignAlias: Codes }
    Mode:                                { local: mode_id, foreign: id, foreignAlias: Codes }
    Item:                                { local: item_id, foreign: id, foreignAlias: Codes }
  options:
    type: MyISAM | 
Partager