model

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ID              = "id"
	UID             = "uid"
	NAME            = "name"
	INFO            = "info"
	TYPE            = "type"
	ROLE            = "role"
	STATUS          = "status"
	CONTENT         = "content"
	OPERATE         = "operate"
	OPERATOR        = "operator"
	CREATED_AT      = "created_at"
	UPDATED_AT      = "updated_at"
	BEGIN_TIME      = "begin_time"
	END_TIME        = "end_time"
	OPEN_ID         = "open_id"
	USER_UID        = "user_uid"
	USER_NAME       = "user_name"
	USER_AVATAR     = "user_avatar"
	USER_PLACE_ROLE = "user_place_role"
	PLACE_UID       = "place_uid"
	PLACE_NAME      = "place_name"
	PLACE_TYPE      = "place_type"
	PLACE_ADDRESS   = "place_address"
	STREET_UID      = "street_uid"
	STREET_NAME     = "street_name"
	CITY_UID        = "city_uid"
	CITY_NAME       = "city_name"
	EVENT_UID       = "event_uid"
	APPLY_UID       = "apply_uid"
	APPLY_STATUS    = "apply_status"
	ORDER_UID       = "order_uid"
	ORDER_STATUS    = "order_status"
	TABLES          = "tables"
	EMAIL           = "email"
	AVATAR          = "avatar"
	ADDRESS         = "address"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Apply

type Apply struct {
	db.ModelWithUID
	PlaceUID  string `gorm:"type:char(32);index:idx_place"`
	UserUID   string `gorm:"type:char(32);index:idx_place"`
	Tables    string `gorm:"type:char(32)"`
	Status    uint8
	Role      uint8
	BeginTime db.Time
	EndTime   db.Time
}

type City

type City struct {
	db.ModelWithUID
	Name string `gorm:"type:char(64);index"`
}

type Event

type Event struct {
	db.ModelWithUID
	PlaceUID string `gorm:"type:char(32);index:idx_place"`
	UserUID  string `gorm:"type:char(32);index:idx_place"`
	Index    string `gorm:"type:char(32)"`
	Operate  string `gorm:"type:char(32)"`
	Args     string `gorm:"type:char(32)"`
	Info     string `gorm:"type:varchar(255)"`
}

type Order

type Order struct {
	db.ModelWithUID
	UserUID  string `gorm:"type:char(32);index"`
	ApplyUID string `gorm:"type:char(32);index"`
	Status   uint8
}

type Place

type Place struct {
	db.ModelWithUID
	StreetUID string `gorm:"type:char(32);index"`
	Name      string `gorm:"type:char(64)"`
	Address   string `gorm:"type:varchar(255)"`
	Type      uint8
}

type Service

type Service struct {
	db.ModelWithUID
	Icon     string `gorm:"type:char(32)"`
	Name     string `gorm:"type:char(32)"`
	Index    string `gorm:"type:char(32)"`
	Hostname string `gorm:"type:char(32)"`
	Pathname string `gorm:"type:char(255)"`
	Nodename string `gorm:"type:char(32)"`
	Nodetype string `gorm:"type:char(32)"`
	Portal   string `gorm:"type:char(255)"`
	Domain   string `gorm:"type:char(255)"`
	Module   string `gorm:"type:char(32)"`
	Version  string `gorm:"type:char(32)"`
}

type Sess

type Sess struct {
	db.ModelWithUID
	UserUID string `gorm:"type:char(32);index"`
	IP      string `gorm:"type:char(16)"`
	Agent   string `gorm:"type:varchar(255)"`
}

type Street

type Street struct {
	db.ModelWithUID
	CityUID string `gorm:"type:char(32);index:idx_city"`
	Name    string `gorm:"type:char(64);index:idx_city"`
	Info    string
}

type User

type User struct {
	db.ModelWithUID
	OpenID string `gorm:"type:char(32);index"`
	Email  string `gorm:"type:char(64)"`
	Name   string `gorm:"type:char(32)"`
	Avatar string `gorm:"type:varchar(255)"`
}

type UserPlace

type UserPlace struct {
	db.ModelWithUID
	UserUID   string `gorm:"type:char(32);index"`
	PlaceUID  string `gorm:"type:char(32);index"`
	Role      uint8
	BeginTime db.Time
	EndTime   db.Time
}

Jump to

Keyboard shortcuts

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