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
| Oeuvre:
actAs:
I18n:
tableName: oeuvre_title
fields: [title, infos]
columns:
year: {type: smallint }
lang: {type: string(64) }
comment: {type: string(255) }
title: {type: string(255) }
infos: {type: string(255) }
relations:
language: { class: Country, local: lang, foreign: code }
Book:
columns:
id: {type: integer, primary: true }
lang: {type: string(2), primary: true }
editor_id: {type: integer, notnull: true }
title: {type: string(255) }
oeuvre_id: {type: integer, notnull: true }
relations:
language: { class: Country, local: lang, foreign: code }
oeuvre: { class: Oeuvre, local: oeuvre_id, foreign: id }
BookOeuvre:
columns:
id: {type: integer, primary: true, notnull: true }
lang: {type: string(2), primary: true, notnull: true }
oeuvre_id: {type: integer, primary: true, notnull: true }
book_id: {type: integer, primary: true, notnull: true }
relations:
language: { class: Country, local: lang, foreign: code }
book: { class: Book, local: id, foreign: id, foreignAlias: OeuvresList }
oeuvre: { class: Oeuvre, local: oeuvre_id, foreign: id, foreignAlias: BooksList } |