feat(doc): move projection

This commit is contained in:
thomas
2023-10-18 10:03:54 +02:00
parent fedab5eeb1
commit 01a41ed13f
36 changed files with 40 additions and 44 deletions

View File

@@ -0,0 +1,5 @@
export enum CardType {
TEACHER,
STUDENT,
CITY,
}

View File

@@ -0,0 +1,5 @@
export interface City {
id: number;
name: string;
country: string;
}

View File

@@ -0,0 +1,9 @@
import { Teacher } from './teacher.model';
export interface Student {
id: number;
firstname: string;
lastname: string;
mainTeacher: Teacher;
school: string;
}

View File

@@ -0,0 +1,15 @@
export const subject = [
'Sciences',
'History',
'English',
'Maths',
'Sport',
] as const;
export type Subject = (typeof subject)[number];
export interface Teacher {
id: number;
firstname: string;
lastname: string;
subject: Subject;
}