new Models added

This commit is contained in:
Benjamin Takats
2022-11-29 22:02:10 +01:00
parent e907b1b6cb
commit 68648ece09
3 changed files with 78 additions and 7 deletions

View File

@@ -5,11 +5,39 @@ models:
relationships:
hasMany: City
City:
name: string
country_id: id foreign
name: string
Lecturer:
team_id: id foreign
name: string
slug: string unique
active: boolean default:true
Participant:
first_name: string
last_name: string
Category:
name: string
slug: string unique
relationships:
belongsToMany: Course
Course:
lecturer_id: id foreign
name: string
relationships:
belongsToMany: Category
Venue:
city_id: id foreign
name: string
slug: string unique
street: string
Event:
course_id: id foreign
venue_id: id foreign
from: datetime
to: datetime
Registration:
event_id: id foreign primary
participant_id: id foreign primary
active: boolean default:true
seeders: Country, City, Lecturer
seeders: Country, City, Lecturer, Participant, Category, Course, Venue, Event, Registration