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
| TwArticle:
actAs: { Timestampable: ~ }
columns:
category_id: { type: integer, notnull: true }
title: { type: string(255), notnull: true }
meta_description: { type: string(255) }
meta_keywords: { type: string(255) }
meta_robots: { type: string(255) }
meta_author: { type: string(255) }
relations:
TwCategory: { onDelete: CASCADE, onUpdate: CASCADE, local: category_id, foreign: id }
TwContentLinkArticle:
columns:
article_id: { type: integer, notnull: true }
content_id: { type: integer, notnull: true }
relations:
TwArticle: { onDelete: CASCADE, onUpdate: CASCADE, local: article_id, foreign: id }
TwContent: { onDelete: CASCADE, onUpdate: CASCADE, local: content_id, foreign: id }
TwContent:
actAs: { Timestampable: ~ }
columns:
description: { type: string(255), notnull: true }
container: { type: string(255), notnull: true }
published: { type: integer, notnull: true }
text: { type: string(4000), notnull: true } |
Partager