-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
85 lines (72 loc) · 1.3 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
type Author = {
id: number;
authorName: string;
website: string;
note: string;
numberOfBooks: number;
};
export type {Author};
type Category = {
id: number;
categoryName: string;
numberOfBooks: number;
};
export type {Category};
type Publisher = {
id: number;
publisherName: string;
address: string;
email: string;
representativeInfo: string;
numberOfBooks: number;
};
export type {Publisher};
type Book = {
id: number;
bookName: string;
publicationYear: number;
author: Author;
category: Category;
publisher: Publisher;
};
export type {Book};
type Reader = {
id: number;
readerName: string;
address: string;
libraryCard: null | LibraryCard;
};
export type {Reader};
type LibraryCard = {
id: number;
cardNumber: number;
startDate: Date;
expirationDate: Date;
note: string;
deleted: boolean;
};
export type {LibraryCard};
type Employee = {
id: number;
fullName: string;
birthDate: Date;
phoneNumber: string;
account: Account;
};
export type {Employee};
type CheckOut = {
id: number;
libraryCard: LibraryCard;
employee: Employee;
checkoutDate: string;
returnedAll: boolean;
};
export type {CheckOut};
type Account = {
id: number;
username: string;
role: string;
enabled: boolean;
employee: Employee;
};
export type {Account};