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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
| DmUser:
columns:
code_client: { type: integer(5), notnull: true }
adresse: { type: string(255), notnull: true }
codepostal: { type: string(255), notnull: true }
ville: { type: string(255), notnull: true }
Produits:
actAs:
DmSortable:
I18n:
fields: [ ref,name,stocks,indices, contents, is_active ]
actAs:
Timestampable:
DmVersionable:
columns:
tva_id: { type: integer, notnull: true }
tarifs_id: { type: integer, notnull: true }
ref: { type: string(155), notnull: true }
name: { type: string(100), notnull: true }
contents: { type: clob, extra: markdown }
author: { type: integer, notnull: true }
is_active: { type: boolean, notnull: true, default: false }
image: { type: integer }
stocks: { type: boolean, notnull: true, default: 1 }
relations:
Image:
class: DmMedia
local: image
foreignAlias: Produits
Author:
class: DmUser
local: author
foreignAlias: Produits
Tva: { onDelete: CASCADE, local: tva_id, foreign: id, foreignAlias: Produits }
Tarifs: { onDelete: CASCADE, local: tarifs_id, foreign: id, foreignAlias: Produits }
Tarifs:
columns:
dm_group_id: { type: integer, primary: true }
Prix: { type: string(100), notnull: true }
relations:
Group:
class: DmGroup
local: dm_group_id
onDelete: CASCADE
Tarifsdegresif:
columns:
maxqte: { type: string(100), notnull: true }
pourcentage: { type: string(100), notnull: true }
produits_id: { type: integer, primary: true }
relations:
Produits: { onDelete: CASCADE, local: produits_id, foreign: id, foreignAlias: Tarifsdegresif }
Tva:
actAs:
Timestampable:
DmVersionable:
columns:
indices: { type: string(155), notnull: true } |
Partager