#schema Product: actAs: Timestampable: ~ columns: id: { type: integer(4), primary: true, autoincrement: true } name: { type: string(255), notnull: true } price: { type: float, default: 0 } extract: { type: string(255) } content: { type: clob } pic: { type: string(255) } ProductGallery: actAs: Timestampable: ~ columns: id: { type: integer(4), primary: true, autoincrement: true } product_id: { type: integer(4), notnull: true } title: { type: string(255) } pic: { type: string(255) } relations: Owner: class: Product local: product_id foreign: id onDelete: CASCADE