-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.go
31 lines (28 loc) · 1.08 KB
/
models.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
30
31
package p
import "time"
type Workout struct {
Id string `json:"_id" bson:"_id,omitempty"`
Record int64 `json:"record"`
Sets int `json:"sets"`
Comments string `json:"comments"`
CreationDate time.Time `json:"creation_date" bson:"creation_date"`
WorkoutDate string `json:"workout_date" bson:"workout_date"`
Day string `json:"day"`
Week int `json:"week"`
WorkoutType string `json:"workout_type" bson:"workout_type"`
Month string `json:"month"`
Year int `json:"year"`
}
type WorkoutDto struct {
Id string `json:"_id" bson:"_id,omitempty"`
Record int64 `json:"record"`
Sets int `json:"sets"`
Comments string `json:"comments"`
CreationDate string `json:"creation_date" bson:"creation_date"`
WorkoutDate string `json:"workout_date" bson:"workout_date"`
Day string `json:"day"`
Week int `json:"week"`
WorkoutType string `json:"workout_type" bson:"workout_type"`
Month string `json:"month"`
Year int `json:"year"`
}