model

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UID             = "uid"
	NAME            = "name"
	INFO            = "info"
	TYPE            = "type"
	STATUS          = "status"
	TITLE           = "title"
	CONTENT         = "content"
	USER_UID        = "user_uid"
	USER_QUEUE_ROLE = "user_queue_role"
	QUEUE_UID       = "queue_uid"
	QUEUE_TYPE      = "queue_type"
	RECEPTION_UID   = "reception_uid"
	RECEPTION_NAME  = "reception_name"
	VOLUME_UID      = "volume_uid"
	VOLUME_TOTAL    = "volume_total"
	SCHEDULE_UID    = "schedule_uid"
	SCHEDULE_STATUS = "schedule_status"
	CALL_UID        = "call_uid"
	BEGIN_TIME      = "begin_time"
	END_TIME        = "end_time"
	CANCEL_TIME     = "cancel_time"
	TAKE_TIME       = "take_time"
	CALL_TIME       = "call_time"
	EXPIRE_TIME     = "expire_time"
	FINISH_TIME     = "finish_time"
	TOTAL           = "total"
	COUNT           = "count"
	EXPIRE          = "expire"
	FINISH          = "finish"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue struct {
	db.ModelPlace
	CompanyUID string `gorm:"type:char(32);index"`
}

type Reception

type Reception struct {
	db.ModelNameInfo
	QueueUID string `gorm:"type:char(32);index"`
}

type Schedule

type Schedule struct {
	db.ModelWithUID
	QueueUID   string `gorm:"type:char(32);index"`
	VolumeUID  string `gorm:"type:char(32)"`
	UserUID    string `gorm:"type:char(32);index"`
	CallUID    string `gorm:"type:char(32);index"`
	Status     uint8  `gorm:"default:0"`
	CancelTime db.Time
	TakeTime   db.Time
	CallTime   db.Time
	ExpireTime db.Time
	FinishTime db.Time
}

type UserQueue

type UserQueue struct {
	db.ModelUserPlace
	QueueUID string `gorm:"type:char(32);index"`
}

type Volume

type Volume struct {
	db.ModelWithUID
	QueueUID     string `gorm:"type:char(32);index:idx_queue"`
	ReceptionUID string `gorm:"type:char(32);index:idx_queue"`
	Total        int    `gorm:"default:0"`
	Count        int    `gorm:"default:0"`
	Expire       int    `gorm:"default:0"`
	Finish       int    `gorm:"default:0"`
	BeginTime    db.Time
	EndTime      db.Time
}

Jump to

Keyboard shortcuts

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