setup project

This commit is contained in:
thomas
2022-11-03 15:37:58 +01:00
parent 8002a3f9ed
commit cd95f9f774
74 changed files with 2263 additions and 1653 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;
}