-
Notifications
You must be signed in to change notification settings - Fork 0
/
waiting_list.go
29 lines (25 loc) · 1001 Bytes
/
waiting_list.go
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
package structs
import "go.mongodb.org/mongo-driver/bson/primitive"
type Booking struct {
ID primitive.ObjectID `bson:"_id,omitempty"`
PtId string `bson:"pt_id"`
Name string `bson:"name"`
Age string `bson:"age"`
Sex string `bson:"sex"`
Complaints string `bson:"complaint"`
PhoneNumber string `bson:"phone_number"`
ReportId []string `bson:"report_ids"`
}
type PracticeLocation struct {
Name string `bson:"name"`
IsOnline bool `bson:"is_online"`
Bookings []Booking `bson:"bookings"`
}
type WaitingList struct {
ID primitive.ObjectID `bson:"_id,omitempty"`
StatId string `bson:"stat_id"`
Day int `bson:"day"`
Month int `bson:"month"`
Year int `bson:"year"`
PracticeLocations []PracticeLocation `bson:"practice_locations"`
}