1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| Order:
actAs:
Timestampable:
columns:
id: { type: integer, primary:true, autoincrement: true }
relations:
Articles: { class: Article, foreign: article_id, local: order_id, refClass: ArticleOrder }
ArticleOrder:
columns:
id: { type: integer, primary:true, autoincrement: true }
article_id: { type: integer, primary: true }
order_id: { type: integer, primary: true }
relations:
Article: { class: Article, onDelete: CASCADE, foreign: id, local: article_id }
Order: { class: Order, onDelete: CASCADE, foreign: id, local: order_id }
ArticleOrderSupplement:
columns:
article_order_id: { type: integer }
supplement_id: { type: integer } |
Partager