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
| StockRefProduitLabo:
columns:
ref_user_id: { type: integer, primary: true }
labo_id: { type: integer, primary: true }
quantite: { type: integer }
relations:
Labo: { onDelete: RESTRICT, local: labo_id, foreign: id, foreignAlias: Labos }
RefUserProduit: { onDelete: RESTRICT, local: ref_user_id, foreign: id, foreignAlias: RefsUtilisateurs }
RefUserProduit:
columns:
produit_id: { type: integer, notnull: true }
ref_user: { type: string(50), notnull: true }
is_active: { type: boolean, notnull: true, default: 1 }
relations:
Produit: { onDelete: RESTRICT, local: produit_id, foreign: id, foreignAlias: RefUsers }
StockProduitLabos:
class: RefUserProduit
refClass: StockRefProduitLabo
local: ref_user_id
foreign: labo_id
foreignAlias: RefUserProduits
Labo:
columns:
numero: { type: string(50), notnull: true }
is_active: { type: boolean, notnull: true, default: 1 }
relations:
StockProduitLabos:
class: RefUserProduit
refClass: StockRefProduitLabo
local: labo_id
foreign: ref_user_id
foreignAlias: Labos |
Partager