refactoring db; added email-verification
This commit is contained in:
12
internal/models/membership.go
Normal file
12
internal/models/membership.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type Membership struct {
|
||||
StartDate time.Time `json:"start_date"`
|
||||
EndDate time.Time `json:"end_date"`
|
||||
Status string `json:"status"`
|
||||
ID int64 `json:"id"`
|
||||
UserID int64 `json:"user_id"`
|
||||
ParentID int64 `json:"parent_id"`
|
||||
}
|
||||
10
internal/models/membership_plans.go
Normal file
10
internal/models/membership_plans.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package models
|
||||
|
||||
type MembershipPlan struct {
|
||||
Name string `json:"name"`
|
||||
MonthlyFee float32 `json:"monthly_fee"`
|
||||
HourlyRate float32 `json:"hourly_rate"`
|
||||
IncludedPerYear int16 `json:"included_hours_per_year"`
|
||||
IncludedPerMonth int16 `json:"included_hours_per_month"`
|
||||
Details string `json:"details"`
|
||||
}
|
||||
@@ -3,12 +3,21 @@ package models
|
||||
import "time"
|
||||
|
||||
type User struct {
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
Password string `json:"password"`
|
||||
LastName string `json:"last_name"`
|
||||
Email string `json:"email"`
|
||||
FirstName string `json:"first_name"`
|
||||
Salt string `json:"-"`
|
||||
ID int64 `json:"id"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
DateOfBirth time.Time `json:"date_of_birth"`
|
||||
Email string `json:"email"`
|
||||
ProfilePicture string `json:"profile_picture"`
|
||||
FirstName string `json:"first_name"`
|
||||
Salt string `json:"-"`
|
||||
LastName string `json:"last_name"`
|
||||
Phone string `json:"phone"`
|
||||
Status string `json:"status"`
|
||||
Notes string `json:"notes"`
|
||||
PaymentStatus string `json:"payment_status"`
|
||||
Password string `json:"password"`
|
||||
Address string `json:"address"`
|
||||
ID int64 `json:"id"`
|
||||
RoleID int8 `json:"role_id"`
|
||||
DriversIDChecked bool `json:"drivers_id_checked"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user