models

package
v0.0.0-...-0590b23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShippingAddress

type ShippingAddress struct {
	gorm.Model
	UserID    uint   `json:"user_id" gorm:"not null"`
	Username  string `json:"username" gorm:"not null"`
	Phone     string `json:"phone"`
	Email     string `json:"email"`
	Address   string `json:"address" gorm:"not null"`
	IsDefault uint   `json:"isDefault" gorm:"default:1"`
}

type User

type User struct {
	gorm.Model
	Username string `json:"username"`
	Password string `json:"password"`
	Salt     string `json:"salt"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL