-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.go
35 lines (31 loc) · 1.22 KB
/
model.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
32
33
34
35
package usermodel
import "time"
type User struct {
ID string `json:"id"`
IDBitCount int64 `json:"id-bit-count"`
FirstName string `json:"first-name"`
LastName string `json:"last-name"`
EmailID string `json:"email-id"`
CountryCode string `json:"country-code"`
PhoneNumberStr string `json:"phone-number"`
CreatedAt time.Time `json:"created-at"`
UpdatedAt time.Time `json:"updated-at"`
}
type Password struct {
UserID string `json:"id"` // unique-key
HashedPasswd string `json:"password"`
UpdatedAt time.Time `json:"updated-at"`
}
type ShippingAddress struct {
ID string `json:"id"`
UserID string `json:"user-id"`
PropertyDescription string `json:"property-desc"` /* Property Number or House Number or Building Number */
Area string `json:"area"`
CityOrTown string `json:"city-or-town"`
State string `json:"state"`
Country string `json:"country"`
Pincode string `json:"pincode"`
IsDefault bool `json:"is-default"`
CreatedAt time.Time `json:"created-at"`
UpdatedAt time.Time `json:"updated-at"`
}