table

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Message = newMessageTable("bris", "即时消息_消息数据", "")
View Source
var Session = newSessionTable("bris", "即时消息_会话", "")
View Source
var SystemNotifyMessage = newSystemNotifyMessageTable("bris", "即时消息_系统通知", "")

Functions

This section is empty.

Types

type MessageTable

type MessageTable struct {
	mysql.Table

	//Columns
	UpdatedAt   mysql.ColumnTimestamp
	From        mysql.ColumnInteger
	ToSessionID mysql.ColumnInteger
	Content     mysql.ColumnString
	ContentType mysql.ColumnInteger
	DeletedAt   mysql.ColumnTimestamp
	CreatedBy   mysql.ColumnInteger
	UpdatedBy   mysql.ColumnInteger
	Url         mysql.ColumnString
	Card        mysql.ColumnString
	DeletedBy   mysql.ColumnInteger
	ID          mysql.ColumnInteger
	CreatedAt   mysql.ColumnTimestamp
	FromName    mysql.ColumnString

	AllColumns     mysql.ColumnList
	MutableColumns mysql.ColumnList
}

func (MessageTable) AS

func (a MessageTable) AS(alias string) MessageTable

AS creates new MessageTable with assigned alias

func (MessageTable) FromSchema

func (a MessageTable) FromSchema(schemaName string) MessageTable

Schema creates new MessageTable with assigned schema name

func (MessageTable) WithPrefix

func (a MessageTable) WithPrefix(prefix string) MessageTable

WithPrefix creates new MessageTable with assigned table prefix

func (MessageTable) WithSuffix

func (a MessageTable) WithSuffix(suffix string) MessageTable

WithSuffix creates new MessageTable with assigned table suffix

type SessionTable

type SessionTable struct {
	mysql.Table

	//Columns
	DeletedAt       mysql.ColumnTimestamp
	SessionName     mysql.ColumnString
	UserIDSet       mysql.ColumnString
	LastMessageTime mysql.ColumnTimestamp
	UpdatedAt       mysql.ColumnTimestamp
	DeletedBy       mysql.ColumnInteger
	ID              mysql.ColumnInteger
	CreatedBy       mysql.ColumnInteger
	CreatedAt       mysql.ColumnTimestamp
	UpdatedBy       mysql.ColumnInteger
	EndTime         mysql.ColumnTimestamp
	MessageID       mysql.ColumnInteger
	Type            mysql.ColumnInteger
	SessionAvatar   mysql.ColumnString

	AllColumns     mysql.ColumnList
	MutableColumns mysql.ColumnList
}

func (SessionTable) AS

func (a SessionTable) AS(alias string) SessionTable

AS creates new SessionTable with assigned alias

func (SessionTable) FromSchema

func (a SessionTable) FromSchema(schemaName string) SessionTable

Schema creates new SessionTable with assigned schema name

func (SessionTable) WithPrefix

func (a SessionTable) WithPrefix(prefix string) SessionTable

WithPrefix creates new SessionTable with assigned table prefix

func (SessionTable) WithSuffix

func (a SessionTable) WithSuffix(suffix string) SessionTable

WithSuffix creates new SessionTable with assigned table suffix

type SystemNotifyMessageTable

type SystemNotifyMessageTable struct {
	mysql.Table

	//Columns
	DeletedBy   mysql.ColumnInteger
	DeletedAt   mysql.ColumnTimestamp
	ToSessionID mysql.ColumnInteger
	UpdatedBy   mysql.ColumnInteger
	UpdatedAt   mysql.ColumnTimestamp
	ID          mysql.ColumnInteger
	From        mysql.ColumnInteger
	Content     mysql.ColumnString
	ContentType mysql.ColumnInteger
	Url         mysql.ColumnString
	Card        mysql.ColumnString
	CreatedBy   mysql.ColumnInteger
	CreatedAt   mysql.ColumnTimestamp
	IsReadIdSet mysql.ColumnString
	FromName    mysql.ColumnString

	AllColumns     mysql.ColumnList
	MutableColumns mysql.ColumnList
}

func (SystemNotifyMessageTable) AS

AS creates new SystemNotifyMessageTable with assigned alias

func (SystemNotifyMessageTable) FromSchema

func (a SystemNotifyMessageTable) FromSchema(schemaName string) SystemNotifyMessageTable

Schema creates new SystemNotifyMessageTable with assigned schema name

func (SystemNotifyMessageTable) WithPrefix

WithPrefix creates new SystemNotifyMessageTable with assigned table prefix

func (SystemNotifyMessageTable) WithSuffix

WithSuffix creates new SystemNotifyMessageTable with assigned table suffix

Jump to

Keyboard shortcuts

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