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 NotifyRobot = newNotifyRobotTable("bris", "即时消息_机器人", "")
View Source
var Plugins = newPluginsTable("bris", "即时消息_插件列表", "")
View Source
var Session = newSessionTable("bris", "即时消息_会话", "")
View Source
var SystemNotifyMessage = newSystemNotifyMessageTable("bris", "即时消息_系统通知", "")
View Source
var UsersSession = newUsersSessionTable("bris", "即时消息_用户会话", "")

Functions

This section is empty.

Types

type MessageTable

type MessageTable struct {
	mysql.Table

	//Columns
	UpdatedAt   mysql.ColumnTimestamp
	From        mysql.ColumnInteger
	FromName    mysql.ColumnString
	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

	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 NotifyRobotTable

type NotifyRobotTable struct {
	mysql.Table

	//Columns
	ID          mysql.ColumnInteger
	CreatedBy   mysql.ColumnInteger
	UpdatedAt   mysql.ColumnTimestamp
	DeletedAt   mysql.ColumnTimestamp
	CreatedAt   mysql.ColumnTimestamp
	Name        mysql.ColumnString
	SessionSet  mysql.ColumnString
	Type        mysql.ColumnInteger
	Description mysql.ColumnString
	UpdatedBy   mysql.ColumnInteger
	DeletedBy   mysql.ColumnInteger

	AllColumns     mysql.ColumnList
	MutableColumns mysql.ColumnList
}

func (NotifyRobotTable) AS

AS creates new NotifyRobotTable with assigned alias

func (NotifyRobotTable) FromSchema

func (a NotifyRobotTable) FromSchema(schemaName string) NotifyRobotTable

Schema creates new NotifyRobotTable with assigned schema name

func (NotifyRobotTable) WithPrefix

func (a NotifyRobotTable) WithPrefix(prefix string) NotifyRobotTable

WithPrefix creates new NotifyRobotTable with assigned table prefix

func (NotifyRobotTable) WithSuffix

func (a NotifyRobotTable) WithSuffix(suffix string) NotifyRobotTable

WithSuffix creates new NotifyRobotTable with assigned table suffix

type PluginsTable

type PluginsTable struct {
	mysql.Table

	//Columns
	DeletedAt     mysql.ColumnTimestamp
	CreatedBy     mysql.ColumnInteger
	CreatedAt     mysql.ColumnTimestamp
	UpdatedBy     mysql.ColumnInteger
	PluginURL     mysql.ColumnString
	PluginIconURL mysql.ColumnString
	ID            mysql.ColumnInteger
	UpdatedAt     mysql.ColumnTimestamp
	DeletedBy     mysql.ColumnInteger
	PluginName    mysql.ColumnString

	AllColumns     mysql.ColumnList
	MutableColumns mysql.ColumnList
}

func (PluginsTable) AS

func (a PluginsTable) AS(alias string) PluginsTable

AS creates new PluginsTable with assigned alias

func (PluginsTable) FromSchema

func (a PluginsTable) FromSchema(schemaName string) PluginsTable

Schema creates new PluginsTable with assigned schema name

func (PluginsTable) WithPrefix

func (a PluginsTable) WithPrefix(prefix string) PluginsTable

WithPrefix creates new PluginsTable with assigned table prefix

func (PluginsTable) WithSuffix

func (a PluginsTable) WithSuffix(suffix string) PluginsTable

WithSuffix creates new PluginsTable 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
	FromName    mysql.ColumnString
	Content     mysql.ColumnString
	ContentType mysql.ColumnInteger
	Url         mysql.ColumnString
	Card        mysql.ColumnString
	CreatedBy   mysql.ColumnInteger
	CreatedAt   mysql.ColumnTimestamp
	IsReadIdSet 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

type UsersSessionTable

type UsersSessionTable struct {
	mysql.Table

	//Columns
	DeletedBy       mysql.ColumnInteger
	DeletedAt       mysql.ColumnTimestamp
	UserID          mysql.ColumnInteger
	ValidSessionSet mysql.ColumnString
	EndSessionSet   mysql.ColumnString
	ID              mysql.ColumnInteger
	CreatedBy       mysql.ColumnInteger
	CreatedAt       mysql.ColumnTimestamp
	UpdatedBy       mysql.ColumnInteger
	UpdatedAt       mysql.ColumnTimestamp

	AllColumns     mysql.ColumnList
	MutableColumns mysql.ColumnList
}

func (UsersSessionTable) AS

AS creates new UsersSessionTable with assigned alias

func (UsersSessionTable) FromSchema

func (a UsersSessionTable) FromSchema(schemaName string) UsersSessionTable

Schema creates new UsersSessionTable with assigned schema name

func (UsersSessionTable) WithPrefix

func (a UsersSessionTable) WithPrefix(prefix string) UsersSessionTable

WithPrefix creates new UsersSessionTable with assigned table prefix

func (UsersSessionTable) WithSuffix

func (a UsersSessionTable) WithSuffix(suffix string) UsersSessionTable

WithSuffix creates new UsersSessionTable with assigned table suffix

Jump to

Keyboard shortcuts

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