mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
cleanup blueprint
This commit is contained in:
56
.blueprint
56
.blueprint
@@ -1,52 +1,14 @@
|
||||
created:
|
||||
- database/factories/CountryFactory.php
|
||||
- database/factories/CityFactory.php
|
||||
- database/factories/LecturerFactory.php
|
||||
- database/factories/ParticipantFactory.php
|
||||
- database/factories/CategoryFactory.php
|
||||
- database/factories/CourseFactory.php
|
||||
- database/factories/VenueFactory.php
|
||||
- database/factories/EventFactory.php
|
||||
- database/factories/RegistrationFactory.php
|
||||
- database/migrations/2022_12_01_145948_create_countries_table.php
|
||||
- database/migrations/2022_12_01_145949_create_cities_table.php
|
||||
- database/migrations/2022_12_01_145950_create_lecturers_table.php
|
||||
- database/migrations/2022_12_01_145951_create_participants_table.php
|
||||
- database/migrations/2022_12_01_145952_create_categories_table.php
|
||||
- database/migrations/2022_12_01_145953_create_courses_table.php
|
||||
- database/migrations/2022_12_01_145954_create_venues_table.php
|
||||
- database/migrations/2022_12_01_145955_create_events_table.php
|
||||
- database/migrations/2022_12_01_145956_create_registrations_table.php
|
||||
- database/migrations/2022_12_01_145957_create_category_course_table.php
|
||||
- app/Models/Country.php
|
||||
- app/Models/City.php
|
||||
- app/Models/Lecturer.php
|
||||
- app/Models/Participant.php
|
||||
- app/Models/Category.php
|
||||
- app/Models/Course.php
|
||||
- app/Models/Venue.php
|
||||
- app/Models/Event.php
|
||||
- app/Models/Registration.php
|
||||
- app/Nova/Country.php
|
||||
- app/Nova/City.php
|
||||
- app/Nova/Lecturer.php
|
||||
- app/Nova/Participant.php
|
||||
- app/Nova/Category.php
|
||||
- app/Nova/Course.php
|
||||
- app/Nova/Venue.php
|
||||
- app/Nova/Event.php
|
||||
- app/Nova/Registration.php
|
||||
models:
|
||||
Category: { name: string, slug: string }
|
||||
City: { country_id: biginteger, name: string, slug: string }
|
||||
Country: { name: string, code: string }
|
||||
Course: { lecturer_id: biginteger, name: string }
|
||||
Event: { course_id: biginteger, venue_id: biginteger, '"from"': datetime, '"to"': datetime }
|
||||
Lecturer: { team_id: biginteger, name: string, slug: string, active: 'boolean default:1' }
|
||||
Membership: { team_id: biginteger, user_id: biginteger, role: 'string nullable' }
|
||||
Participant: { first_name: string, last_name: string }
|
||||
Registration: { event_id: biginteger, participant_id: biginteger, active: 'boolean default:1' }
|
||||
Team: { user_id: biginteger, name: string, personal_team: boolean }
|
||||
TeamInvitation: { team_id: biginteger, email: string, role: 'string nullable' }
|
||||
User: { name: string, email: string, email_verified_at: 'datetime nullable', password: string, remember_token: 'string:100 nullable', current_team_id: 'biginteger nullable', profile_photo_path: 'string:2048 nullable', is_lecturer: 'boolean default:', two_factor_secret: 'text nullable', two_factor_recovery_codes: 'text nullable', two_factor_confirmed_at: 'datetime nullable' }
|
||||
Country: { name: string, code: string, relationships: { hasMany: City } }
|
||||
City: { country_id: 'id foreign', name: string, slug: 'string unique' }
|
||||
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' }
|
||||
Venue: { city_id: biginteger, name: string, slug: string, street: string }
|
||||
|
||||
42
draft.yaml
42
draft.yaml
@@ -1,42 +0,0 @@
|
||||
models:
|
||||
Country:
|
||||
name: string
|
||||
code: string
|
||||
relationships:
|
||||
hasMany: City
|
||||
City:
|
||||
country_id: id foreign
|
||||
name: string
|
||||
slug: string unique
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user