Spaces:
Configuration error
Configuration error
Delete models/DatabaseModel.go
Browse files- models/DatabaseModel.go +0 -39
models/DatabaseModel.go
DELETED
|
@@ -1,39 +0,0 @@
|
|
| 1 |
-
package models
|
| 2 |
-
|
| 3 |
-
import (
|
| 4 |
-
"time"
|
| 5 |
-
|
| 6 |
-
uuid "github.com/satori/go.uuid"
|
| 7 |
-
)
|
| 8 |
-
|
| 9 |
-
type Account struct {
|
| 10 |
-
Id uint `gorm:"primaryKey" json:"id"`
|
| 11 |
-
UUID uuid.UUID `gorm:"type:uuid" json:"uuid" `
|
| 12 |
-
Email string `gorm:"uniqueIndex" json:"email"`
|
| 13 |
-
Password string `json:"password"`
|
| 14 |
-
IsEmailVerified bool `json:"is_email_verified"`
|
| 15 |
-
CreatedAt time.Time `json:"created_at"`
|
| 16 |
-
DeletedAt time.Time `json:"deleted_at"`
|
| 17 |
-
}
|
| 18 |
-
|
| 19 |
-
type AccountDetails struct {
|
| 20 |
-
IDDetail uint `gorm:"primaryKey" json:"id_detail"`
|
| 21 |
-
IDAccount uint `json:"id_account"`
|
| 22 |
-
Province string `json:"province"`
|
| 23 |
-
City string `json:"city"`
|
| 24 |
-
Institution string `json:"institution"`
|
| 25 |
-
UpdatedAt time.Time `json:"updated_at"`
|
| 26 |
-
DeletedAt time.Time `json:"deleted_at"`
|
| 27 |
-
}
|
| 28 |
-
|
| 29 |
-
type EmailVerification struct {
|
| 30 |
-
Id int `gorm:"primaryKey" json:"id"`
|
| 31 |
-
AccountId int `json:"account_id"`
|
| 32 |
-
UUID uuid.UUID `gorm:"type:uuid" json:"uuid" `
|
| 33 |
-
CreatedAt time.Time `json:"created_at"`
|
| 34 |
-
ExpiredAt time.Time `json:"expired_at"`
|
| 35 |
-
}
|
| 36 |
-
|
| 37 |
-
// Gorm table name settings
|
| 38 |
-
func (Account) TableName() string { return "account" }
|
| 39 |
-
func (AccountDetails) TableName() string { return "account_details" }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|