Created
August 25, 2018 18:40
-
-
Save rodrwan/38c162fcccb2e4797f2d5adcc6d371f1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type User struct { | |
ID string `json:"id" db:"id"` | |
FirstName string `json:"first_name" db:"first_name"` | |
LastName string `json:"last_name" db:"last_name"` | |
Email string `json:"email" db:"email"` | |
Birthdate time.Time `json:"birthdate" db:"birthdate"` | |
DNI string `json:"dni" db:"dni"` | |
DNIType string `json:"dni_type" db:"dni_type"` | |
FamilyStatus string `json:"family_status" db:"family_status"` | |
Gender string `json:"gender" db:"gender"` | |
Title string `json:"title" db:"title"` | |
CreatedAt time.Time `json:"created_at" db:"created_at"` | |
UpdatedAt time.Time `json:"updated_at" db:"updated_at"` | |
DeletedAt time.Time `json:"deleted_at" db:"deleted_at"` | |
} | |
type Address struct { | |
UserID string `json:"user_id,omitempty" db:"user_id"` | |
AddressLine string `json:"address_line,omitempty" db:"address_line"` | |
City string `json:"city,omitempty" db:"city"` | |
Locality string `json:"locality,omitempty" db:"locality"` | |
AdministrativeAreaLevel1 string `json:"administrative_area_level_1,omitempty" db:"administrative_area_level_1"` | |
Country string `json:"country,omitempty" db:"country"` | |
Place string `json:"place,omitempty" db:"place"` | |
PostalCode int `json:"postal_code,omitempty" db:"postal_code"` | |
CreatedAt time.Time `json:"created_at,omitempty" db:"created_at"` | |
UpdatedAt time.Time `json:"updated_at,omitempty" db:"updated_at"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment