mirror of
https://github.com/jakobkordez/ham-reserve.git
synced 2025-08-06 21:27:40 +00:00
WIP
This commit is contained in:
@ -4,3 +4,53 @@
|
||||
yarn install
|
||||
yarn start
|
||||
```
|
||||
|
||||
## Models
|
||||
|
||||
### User
|
||||
|
||||
```typescript
|
||||
class User {
|
||||
_id: string;
|
||||
username: string; // callsign
|
||||
password: string;
|
||||
roles: string[];
|
||||
name: string;
|
||||
email: string;
|
||||
phone: string;
|
||||
auth: string;
|
||||
createdAt: Date;
|
||||
isDeleted: boolean;
|
||||
}
|
||||
```
|
||||
|
||||
### Event
|
||||
|
||||
```typescript
|
||||
class Event {
|
||||
_id: string;
|
||||
callsign: string;
|
||||
description: string;
|
||||
fromDateTime: Date;
|
||||
toDateTime: Date;
|
||||
access: User[];
|
||||
createdAt: Date;
|
||||
isDeleted: boolean;
|
||||
}
|
||||
```
|
||||
|
||||
### Reservation
|
||||
|
||||
```typescript
|
||||
class Reservation {
|
||||
_id: string;
|
||||
user: User;
|
||||
event: Event;
|
||||
fromDateTime: Date;
|
||||
toDateTime: Date;
|
||||
bands: string[];
|
||||
modes: string[];
|
||||
createdAt: Date;
|
||||
isDeleted: boolean;
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user