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
|
Hobby:
columns:
id: { type: integer, notnull: true, primary: true, autoincrement: true}
name: { type: string(255), notnull: true }
Profile:
columns:
id: { type: integer, notnull: true, primary: true, autoincrement: true }
name: { type: string(255), notnull: true }
relations:
Hobbies:
class: Hobby
refClass: ProGetHob
local: profile_id
foreign: hobby_id
foreignAlias: Profiles
ProGetHob:
columns:
profile_id: { type: integer, primary: true }
hobby_id: { type: integer, primary: true }
relations:
Profile: { onDelete: CASCADE, local: profile_id, foreign: id, foreignAlias: ProGetHobs }
Hobby: { onDelete: CASCADE, local: hobby_id, foreign: id , foreignAlias: ProGetHobs } |
Partager