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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
| QuizgenParticipation:
actAs: { Timestampable: ~ }
columns:
quiz_id: { type: integer, notnull: true }
civility: { type: string(255), notnull: true }
birthdate: { type: timestamp, notnull: true }
firstname: { type: string(255), notnull: true }
lastname: { type: string(255), notnull: true }
city: { type: string(255), notnull: true }
zip_code: { type: string(255), notnull: true }
email: { type: string(255), notnull: true }
accept_rules: { type: boolean, notnull: true, default: NULL }
shares: { type: integer, notnull: true, default: 0 }
relations:
QuizgenQuiz: { onDelete: CASCADE, local: quiz_id, foreign: id, foreignAlias: QuizgenParticipations }
QuizgenNewsletters:
class: QuizgenNewsletter
refClass: QuizgenParticipationNewsletter
local: participation_id
foreign: newsletter_id
foreignAlias: QuizgenParticipations
QuizgenFields:
class: QuizgenField
refClass: QuizgenParticipationField
local: participation_id
foreign: field_id
foreignAlias: QuizgenParticipations
QuizgenQuestions:
class: QuizgenQuestion
refClass: QuizgenParticipationQuestion
local: participation_id
foreign: question_id
foreignAlias: QuizgenParticipations
QuizgenParticipationQuestion:
columns:
participation_id: { type: integer, notnull: true }
question_id: { type: integer, notnull: true }
answer: { type: string(255), notnull: true }
relations:
QuizgenParticipation: { onDelete: CASCADE, local: participation_id, foreign: id }
QuizgenQuestion: { onDelete: CASCADE, local: question_id, foreign: id }
QuizgenParticipationNewsletter:
columns:
participation_id: { type: integer, notnull: true }
newsletter_id: { type: integer, notnull: true }
relations:
QuizgenParticipation: { onDelete: CASCADE, local: participation_id, foreign: id }
QuizgenNewsletter: { onDelete: CASCADE, local: newsletter_id, foreign: id }
QuizgenParticipationField:
columns:
participation_id: { type: integer, notnull: true }
field_id: { type: integer, notnull: true }
value: { type: string(255) }
relations:
QuizgenParticipation: { onDelete: CASCADE, local: participation_id, foreign: id }
QuizgenField: { onDelete: CASCADE, local: field_id, foreign: id } |
Partager