mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-13 14:23:02 -05:00
setup project
This commit is contained in:
5
apps/projection/src/app/model/card.model.ts
Normal file
5
apps/projection/src/app/model/card.model.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export enum CardType {
|
||||
TEACHER,
|
||||
STUDENT,
|
||||
CITY,
|
||||
}
|
||||
5
apps/projection/src/app/model/city.model.ts
Normal file
5
apps/projection/src/app/model/city.model.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export interface City {
|
||||
id: number;
|
||||
name: string;
|
||||
country: string;
|
||||
}
|
||||
9
apps/projection/src/app/model/student.model.ts
Normal file
9
apps/projection/src/app/model/student.model.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Teacher } from './teacher.model';
|
||||
|
||||
export interface Student {
|
||||
id: number;
|
||||
firstname: string;
|
||||
lastname: string;
|
||||
mainTeacher: Teacher;
|
||||
school: string;
|
||||
}
|
||||
15
apps/projection/src/app/model/teacher.model.ts
Normal file
15
apps/projection/src/app/model/teacher.model.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user