models

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChannelColumns = struct {
	ID                 string
	IsOpen             string
	LastRead           string
	UnreadCount        string
	UnreadCountDisplay string
	IsGroup            string
	IsShared           string
	IsIm               string
	IsExtShared        string
	IsOrgShared        string
	IsPendingExtShared string
	IsPrivate          string
	IsMpim             string
	Unlinked           string
	NameNormalized     string
	NumMembers         string
	Priority           string
	User               string
	Name               string
	Creator            string
	IsArchived         string
	Topic              string
	Purpose            string
	IsChannel          string
	IsGeneral          string
	IsMember           string
	Locale             string
	CreatedAt          string
}{
	ID:                 "id",
	IsOpen:             "is_open",
	LastRead:           "last_read",
	UnreadCount:        "unread_count",
	UnreadCountDisplay: "unread_count_display",
	IsGroup:            "is_group",
	IsShared:           "is_shared",
	IsIm:               "is_im",
	IsExtShared:        "is_ext_shared",
	IsOrgShared:        "is_org_shared",
	IsPendingExtShared: "is_pending_ext_shared",
	IsPrivate:          "is_private",
	IsMpim:             "is_mpim",
	Unlinked:           "unlinked",
	NameNormalized:     "name_normalized",
	NumMembers:         "num_members",
	Priority:           "priority",
	User:               "user",
	Name:               "name",
	Creator:            "creator",
	IsArchived:         "is_archived",
	Topic:              "topic",
	Purpose:            "purpose",
	IsChannel:          "is_channel",
	IsGeneral:          "is_general",
	IsMember:           "is_member",
	Locale:             "locale",
	CreatedAt:          "created_at",
}
View Source
var ChannelRels = struct {
}{}

ChannelRels is where relationship names are stored.

View Source
var ChannelWhere = struct {
	ID                 whereHelperstring
	IsOpen             whereHelperbool
	LastRead           whereHelperstring
	UnreadCount        whereHelperint64
	UnreadCountDisplay whereHelperint64
	IsGroup            whereHelperbool
	IsShared           whereHelperbool
	IsIm               whereHelperbool
	IsExtShared        whereHelperbool
	IsOrgShared        whereHelperbool
	IsPendingExtShared whereHelperbool
	IsPrivate          whereHelperbool
	IsMpim             whereHelperbool
	Unlinked           whereHelperint64
	NameNormalized     whereHelperstring
	NumMembers         whereHelperint64
	Priority           whereHelperfloat64
	User               whereHelperstring
	Name               whereHelperstring
	Creator            whereHelperstring
	IsArchived         whereHelperbool
	Topic              whereHelperstring
	Purpose            whereHelperstring
	IsChannel          whereHelperbool
	IsGeneral          whereHelperbool
	IsMember           whereHelperbool
	Locale             whereHelperstring
	CreatedAt          whereHelpertime_Time
}{
	ID:                 whereHelperstring{/* contains filtered or unexported fields */},
	IsOpen:             whereHelperbool{/* contains filtered or unexported fields */},
	LastRead:           whereHelperstring{/* contains filtered or unexported fields */},
	UnreadCount:        whereHelperint64{/* contains filtered or unexported fields */},
	UnreadCountDisplay: whereHelperint64{/* contains filtered or unexported fields */},
	IsGroup:            whereHelperbool{/* contains filtered or unexported fields */},
	IsShared:           whereHelperbool{/* contains filtered or unexported fields */},
	IsIm:               whereHelperbool{/* contains filtered or unexported fields */},
	IsExtShared:        whereHelperbool{/* contains filtered or unexported fields */},
	IsOrgShared:        whereHelperbool{/* contains filtered or unexported fields */},
	IsPendingExtShared: whereHelperbool{/* contains filtered or unexported fields */},
	IsPrivate:          whereHelperbool{/* contains filtered or unexported fields */},
	IsMpim:             whereHelperbool{/* contains filtered or unexported fields */},
	Unlinked:           whereHelperint64{/* contains filtered or unexported fields */},
	NameNormalized:     whereHelperstring{/* contains filtered or unexported fields */},
	NumMembers:         whereHelperint64{/* contains filtered or unexported fields */},
	Priority:           whereHelperfloat64{/* contains filtered or unexported fields */},
	User:               whereHelperstring{/* contains filtered or unexported fields */},
	Name:               whereHelperstring{/* contains filtered or unexported fields */},
	Creator:            whereHelperstring{/* contains filtered or unexported fields */},
	IsArchived:         whereHelperbool{/* contains filtered or unexported fields */},
	Topic:              whereHelperstring{/* contains filtered or unexported fields */},
	Purpose:            whereHelperstring{/* contains filtered or unexported fields */},
	IsChannel:          whereHelperbool{/* contains filtered or unexported fields */},
	IsGeneral:          whereHelperbool{/* contains filtered or unexported fields */},
	IsMember:           whereHelperbool{/* contains filtered or unexported fields */},
	Locale:             whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")

ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.

View Source
var FileColumns = struct {
	ID                 string
	Name               string
	Title              string
	Mimetype           string
	ImageExifRotation  string
	Filetype           string
	PrettyType         string
	User               string
	Mode               string
	Editable           string
	IsExternal         string
	ExternalType       string
	Size               string
	URLPrivate         string
	URLPrivateDownload string
	OriginalH          string
	OriginalW          string
	Thumb64            string
	Thumb80            string
	Thumb160           string
	Thumb360           string
	Thumb360Gif        string
	Thumb360W          string
	Thumb360H          string
	Thumb480           string
	Thumb480W          string
	Thumb480H          string
	Thumb720           string
	Thumb720W          string
	Thumb720H          string
	Thumb960           string
	Thumb960W          string
	Thumb960H          string
	Thumb1024          string
	Thumb1024W         string
	Thumb1024H         string
	Permalink          string
	PermalinkPublic    string
	EditLink           string
	Preview            string
	PreviewHighlight   string
	Lines              string
	LinesMore          string
	IsPublic           string
	PublicURLShared    string
	CommentsCount      string
	NumStars           string
	IsStarred          string
	CreatedAt          string
}{
	ID:                 "id",
	Name:               "name",
	Title:              "title",
	Mimetype:           "mimetype",
	ImageExifRotation:  "image_exif_rotation",
	Filetype:           "filetype",
	PrettyType:         "pretty_type",
	User:               "user",
	Mode:               "mode",
	Editable:           "editable",
	IsExternal:         "is_external",
	ExternalType:       "external_type",
	Size:               "size",
	URLPrivate:         "url_private",
	URLPrivateDownload: "url_private_download",
	OriginalH:          "original_h",
	OriginalW:          "original_w",
	Thumb64:            "thumb64",
	Thumb80:            "thumb80",
	Thumb160:           "thumb160",
	Thumb360:           "thumb360",
	Thumb360Gif:        "thumb360_gif",
	Thumb360W:          "thumb360_w",
	Thumb360H:          "thumb360_h",
	Thumb480:           "thumb480",
	Thumb480W:          "thumb480_w",
	Thumb480H:          "thumb480_h",
	Thumb720:           "thumb720",
	Thumb720W:          "thumb720_w",
	Thumb720H:          "thumb720_h",
	Thumb960:           "thumb960",
	Thumb960W:          "thumb960_w",
	Thumb960H:          "thumb960_h",
	Thumb1024:          "thumb1024",
	Thumb1024W:         "thumb1024_w",
	Thumb1024H:         "thumb1024_h",
	Permalink:          "permalink",
	PermalinkPublic:    "permalink_public",
	EditLink:           "edit_link",
	Preview:            "preview",
	PreviewHighlight:   "preview_highlight",
	Lines:              "lines",
	LinesMore:          "lines_more",
	IsPublic:           "is_public",
	PublicURLShared:    "public_url_shared",
	CommentsCount:      "comments_count",
	NumStars:           "num_stars",
	IsStarred:          "is_starred",
	CreatedAt:          "created_at",
}
View Source
var FileRels = struct {
}{}

FileRels is where relationship names are stored.

View Source
var FileWhere = struct {
	ID                 whereHelperstring
	Name               whereHelperstring
	Title              whereHelperstring
	Mimetype           whereHelperstring
	ImageExifRotation  whereHelperint64
	Filetype           whereHelperstring
	PrettyType         whereHelperstring
	User               whereHelperstring
	Mode               whereHelperstring
	Editable           whereHelperbool
	IsExternal         whereHelperbool
	ExternalType       whereHelperstring
	Size               whereHelperint64
	URLPrivate         whereHelperstring
	URLPrivateDownload whereHelperstring
	OriginalH          whereHelperint64
	OriginalW          whereHelperint64
	Thumb64            whereHelperstring
	Thumb80            whereHelperstring
	Thumb160           whereHelperstring
	Thumb360           whereHelperstring
	Thumb360Gif        whereHelperstring
	Thumb360W          whereHelperint64
	Thumb360H          whereHelperint64
	Thumb480           whereHelperstring
	Thumb480W          whereHelperint64
	Thumb480H          whereHelperint64
	Thumb720           whereHelperstring
	Thumb720W          whereHelperint64
	Thumb720H          whereHelperint64
	Thumb960           whereHelperstring
	Thumb960W          whereHelperint64
	Thumb960H          whereHelperint64
	Thumb1024          whereHelperstring
	Thumb1024W         whereHelperint64
	Thumb1024H         whereHelperint64
	Permalink          whereHelperstring
	PermalinkPublic    whereHelperstring
	EditLink           whereHelperstring
	Preview            whereHelperstring
	PreviewHighlight   whereHelperstring
	Lines              whereHelperint64
	LinesMore          whereHelperint64
	IsPublic           whereHelperbool
	PublicURLShared    whereHelperbool
	CommentsCount      whereHelperint64
	NumStars           whereHelperint64
	IsStarred          whereHelperbool
	CreatedAt          whereHelpertime_Time
}{
	ID:                 whereHelperstring{/* contains filtered or unexported fields */},
	Name:               whereHelperstring{/* contains filtered or unexported fields */},
	Title:              whereHelperstring{/* contains filtered or unexported fields */},
	Mimetype:           whereHelperstring{/* contains filtered or unexported fields */},
	ImageExifRotation:  whereHelperint64{/* contains filtered or unexported fields */},
	Filetype:           whereHelperstring{/* contains filtered or unexported fields */},
	PrettyType:         whereHelperstring{/* contains filtered or unexported fields */},
	User:               whereHelperstring{/* contains filtered or unexported fields */},
	Mode:               whereHelperstring{/* contains filtered or unexported fields */},
	Editable:           whereHelperbool{/* contains filtered or unexported fields */},
	IsExternal:         whereHelperbool{/* contains filtered or unexported fields */},
	ExternalType:       whereHelperstring{/* contains filtered or unexported fields */},
	Size:               whereHelperint64{/* contains filtered or unexported fields */},
	URLPrivate:         whereHelperstring{/* contains filtered or unexported fields */},
	URLPrivateDownload: whereHelperstring{/* contains filtered or unexported fields */},
	OriginalH:          whereHelperint64{/* contains filtered or unexported fields */},
	OriginalW:          whereHelperint64{/* contains filtered or unexported fields */},
	Thumb64:            whereHelperstring{/* contains filtered or unexported fields */},
	Thumb80:            whereHelperstring{/* contains filtered or unexported fields */},
	Thumb160:           whereHelperstring{/* contains filtered or unexported fields */},
	Thumb360:           whereHelperstring{/* contains filtered or unexported fields */},
	Thumb360Gif:        whereHelperstring{/* contains filtered or unexported fields */},
	Thumb360W:          whereHelperint64{/* contains filtered or unexported fields */},
	Thumb360H:          whereHelperint64{/* contains filtered or unexported fields */},
	Thumb480:           whereHelperstring{/* contains filtered or unexported fields */},
	Thumb480W:          whereHelperint64{/* contains filtered or unexported fields */},
	Thumb480H:          whereHelperint64{/* contains filtered or unexported fields */},
	Thumb720:           whereHelperstring{/* contains filtered or unexported fields */},
	Thumb720W:          whereHelperint64{/* contains filtered or unexported fields */},
	Thumb720H:          whereHelperint64{/* contains filtered or unexported fields */},
	Thumb960:           whereHelperstring{/* contains filtered or unexported fields */},
	Thumb960W:          whereHelperint64{/* contains filtered or unexported fields */},
	Thumb960H:          whereHelperint64{/* contains filtered or unexported fields */},
	Thumb1024:          whereHelperstring{/* contains filtered or unexported fields */},
	Thumb1024W:         whereHelperint64{/* contains filtered or unexported fields */},
	Thumb1024H:         whereHelperint64{/* contains filtered or unexported fields */},
	Permalink:          whereHelperstring{/* contains filtered or unexported fields */},
	PermalinkPublic:    whereHelperstring{/* contains filtered or unexported fields */},
	EditLink:           whereHelperstring{/* contains filtered or unexported fields */},
	Preview:            whereHelperstring{/* contains filtered or unexported fields */},
	PreviewHighlight:   whereHelperstring{/* contains filtered or unexported fields */},
	Lines:              whereHelperint64{/* contains filtered or unexported fields */},
	LinesMore:          whereHelperint64{/* contains filtered or unexported fields */},
	IsPublic:           whereHelperbool{/* contains filtered or unexported fields */},
	PublicURLShared:    whereHelperbool{/* contains filtered or unexported fields */},
	CommentsCount:      whereHelperint64{/* contains filtered or unexported fields */},
	NumStars:           whereHelperint64{/* contains filtered or unexported fields */},
	IsStarred:          whereHelperbool{/* contains filtered or unexported fields */},
	CreatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var MessageColumns = struct {
	ClientMSGID      string
	Type             string
	Channel          string
	User             string
	Text             string
	Timestamp        string
	ThreadTimestamp  string
	IsStarred        string
	LastRead         string
	Subscribed       string
	UnreadCount      string
	SubType          string
	Hidden           string
	DeletedTimestamp string
	EventTimestamp   string
	BotID            string
	Username         string
	Inviter          string
	Topic            string
	Purpose          string
	Name             string
	OldName          string
	ReplyCount       string
	ParentUserID     string
	Upload           string
	ItemType         string
	ReplyTo          string
	Team             string
	ResponseType     string
	ReplaceOriginal  string
	DeleteOriginal   string
	CreatedAt        string
}{
	ClientMSGID:      "client_msg_id",
	Type:             "type",
	Channel:          "channel",
	User:             "user",
	Text:             "text",
	Timestamp:        "timestamp",
	ThreadTimestamp:  "thread_timestamp",
	IsStarred:        "is_starred",
	LastRead:         "last_read",
	Subscribed:       "subscribed",
	UnreadCount:      "unread_count",
	SubType:          "sub_type",
	Hidden:           "hidden",
	DeletedTimestamp: "deleted_timestamp",
	EventTimestamp:   "event_timestamp",
	BotID:            "bot_id",
	Username:         "username",
	Inviter:          "inviter",
	Topic:            "topic",
	Purpose:          "purpose",
	Name:             "name",
	OldName:          "old_name",
	ReplyCount:       "reply_count",
	ParentUserID:     "parent_user_id",
	Upload:           "upload",
	ItemType:         "item_type",
	ReplyTo:          "reply_to",
	Team:             "team",
	ResponseType:     "response_type",
	ReplaceOriginal:  "replace_original",
	DeleteOriginal:   "delete_original",
	CreatedAt:        "created_at",
}
View Source
var MessageRels = struct {
}{}

MessageRels is where relationship names are stored.

View Source
var MessageWhere = struct {
	ClientMSGID      whereHelperstring
	Type             whereHelperstring
	Channel          whereHelperstring
	User             whereHelperstring
	Text             whereHelperstring
	Timestamp        whereHelperstring
	ThreadTimestamp  whereHelperstring
	IsStarred        whereHelperbool
	LastRead         whereHelperstring
	Subscribed       whereHelperbool
	UnreadCount      whereHelperint64
	SubType          whereHelperstring
	Hidden           whereHelperbool
	DeletedTimestamp whereHelperstring
	EventTimestamp   whereHelperstring
	BotID            whereHelperstring
	Username         whereHelperstring
	Inviter          whereHelperstring
	Topic            whereHelperstring
	Purpose          whereHelperstring
	Name             whereHelperstring
	OldName          whereHelperstring
	ReplyCount       whereHelperint64
	ParentUserID     whereHelperstring
	Upload           whereHelperbool
	ItemType         whereHelperstring
	ReplyTo          whereHelperint64
	Team             whereHelperstring
	ResponseType     whereHelperstring
	ReplaceOriginal  whereHelperbool
	DeleteOriginal   whereHelperbool
	CreatedAt        whereHelpertime_Time
}{
	ClientMSGID:      whereHelperstring{/* contains filtered or unexported fields */},
	Type:             whereHelperstring{/* contains filtered or unexported fields */},
	Channel:          whereHelperstring{/* contains filtered or unexported fields */},
	User:             whereHelperstring{/* contains filtered or unexported fields */},
	Text:             whereHelperstring{/* contains filtered or unexported fields */},
	Timestamp:        whereHelperstring{/* contains filtered or unexported fields */},
	ThreadTimestamp:  whereHelperstring{/* contains filtered or unexported fields */},
	IsStarred:        whereHelperbool{/* contains filtered or unexported fields */},
	LastRead:         whereHelperstring{/* contains filtered or unexported fields */},
	Subscribed:       whereHelperbool{/* contains filtered or unexported fields */},
	UnreadCount:      whereHelperint64{/* contains filtered or unexported fields */},
	SubType:          whereHelperstring{/* contains filtered or unexported fields */},
	Hidden:           whereHelperbool{/* contains filtered or unexported fields */},
	DeletedTimestamp: whereHelperstring{/* contains filtered or unexported fields */},
	EventTimestamp:   whereHelperstring{/* contains filtered or unexported fields */},
	BotID:            whereHelperstring{/* contains filtered or unexported fields */},
	Username:         whereHelperstring{/* contains filtered or unexported fields */},
	Inviter:          whereHelperstring{/* contains filtered or unexported fields */},
	Topic:            whereHelperstring{/* contains filtered or unexported fields */},
	Purpose:          whereHelperstring{/* contains filtered or unexported fields */},
	Name:             whereHelperstring{/* contains filtered or unexported fields */},
	OldName:          whereHelperstring{/* contains filtered or unexported fields */},
	ReplyCount:       whereHelperint64{/* contains filtered or unexported fields */},
	ParentUserID:     whereHelperstring{/* contains filtered or unexported fields */},
	Upload:           whereHelperbool{/* contains filtered or unexported fields */},
	ItemType:         whereHelperstring{/* contains filtered or unexported fields */},
	ReplyTo:          whereHelperint64{/* contains filtered or unexported fields */},
	Team:             whereHelperstring{/* contains filtered or unexported fields */},
	ResponseType:     whereHelperstring{/* contains filtered or unexported fields */},
	ReplaceOriginal:  whereHelperbool{/* contains filtered or unexported fields */},
	DeleteOriginal:   whereHelperbool{/* contains filtered or unexported fields */},
	CreatedAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var RelMessageFileColumns = struct {
	MessageTimestamp string
	FileID           string
}{
	MessageTimestamp: "message_timestamp",
	FileID:           "file_id",
}
View Source
var RelMessageFileRels = struct {
}{}

RelMessageFileRels is where relationship names are stored.

View Source
var RelMessageFileWhere = struct {
	MessageTimestamp whereHelperstring
	FileID           whereHelperstring
}{
	MessageTimestamp: whereHelperstring{/* contains filtered or unexported fields */},
	FileID:           whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	Channel        string
	File           string
	Message        string
	RelMessageFile string
	User           string
	UserProfile    string
}{
	Channel:        "channel",
	File:           "file",
	Message:        "message",
	RelMessageFile: "rel_message_file",
	User:           "user",
	UserProfile:    "user_profile",
}
View Source
var UserColumns = struct {
	ID                string
	TeamID            string
	Name              string
	Deleted           string
	Color             string
	RealName          string
	TZ                string
	TZLabel           string
	TZOffset          string
	IsBot             string
	IsAdmin           string
	IsOwner           string
	IsPrimaryOwner    string
	IsRestricted      string
	IsUltraRestricted string
	IsStranger        string
	IsAppUser         string
	IsInvitedUser     string
	Has2fa            string
	HasFiles          string
	Presence          string
	Locale            string
	CreatedAt         string
	UpdatedAt         string
}{
	ID:                "id",
	TeamID:            "team_id",
	Name:              "name",
	Deleted:           "deleted",
	Color:             "color",
	RealName:          "real_name",
	TZ:                "tz",
	TZLabel:           "tz_label",
	TZOffset:          "tz_offset",
	IsBot:             "is_bot",
	IsAdmin:           "is_admin",
	IsOwner:           "is_owner",
	IsPrimaryOwner:    "is_primary_owner",
	IsRestricted:      "is_restricted",
	IsUltraRestricted: "is_ultra_restricted",
	IsStranger:        "is_stranger",
	IsAppUser:         "is_app_user",
	IsInvitedUser:     "is_invited_user",
	Has2fa:            "has_2fa",
	HasFiles:          "has_files",
	Presence:          "presence",
	Locale:            "locale",
	CreatedAt:         "created_at",
	UpdatedAt:         "updated_at",
}
View Source
var UserProfileColumns = struct {
	UserID                string
	FirstName             string
	LastName              string
	RealName              string
	RealNameNormalized    string
	DisplayName           string
	DisplayNameNormalized string
	Email                 string
	Skype                 string
	Phone                 string
	Image24               string
	Image32               string
	Image48               string
	Image72               string
	Image192              string
	Image512              string
	ImageOriginal         string
	Title                 string
	BotID                 string
	APIAppID              string
	StatusText            string
	StatusEmoji           string
	StatusExpiration      string
	Team                  string
	CreatedAt             string
	UpdatedAt             string
}{
	UserID:                "user_id",
	FirstName:             "first_name",
	LastName:              "last_name",
	RealName:              "real_name",
	RealNameNormalized:    "real_name_normalized",
	DisplayName:           "display_name",
	DisplayNameNormalized: "display_name_normalized",
	Email:                 "email",
	Skype:                 "skype",
	Phone:                 "phone",
	Image24:               "image24",
	Image32:               "image32",
	Image48:               "image48",
	Image72:               "image72",
	Image192:              "image192",
	Image512:              "image512",
	ImageOriginal:         "image_original",
	Title:                 "title",
	BotID:                 "bot_id",
	APIAppID:              "api_app_id",
	StatusText:            "status_text",
	StatusEmoji:           "status_emoji",
	StatusExpiration:      "status_expiration",
	Team:                  "team",
	CreatedAt:             "created_at",
	UpdatedAt:             "updated_at",
}
View Source
var UserProfileRels = struct {
}{}

UserProfileRels is where relationship names are stored.

View Source
var UserProfileWhere = struct {
	UserID                whereHelperstring
	FirstName             whereHelperstring
	LastName              whereHelperstring
	RealName              whereHelperstring
	RealNameNormalized    whereHelperstring
	DisplayName           whereHelperstring
	DisplayNameNormalized whereHelperstring
	Email                 whereHelperstring
	Skype                 whereHelperstring
	Phone                 whereHelperstring
	Image24               whereHelperstring
	Image32               whereHelperstring
	Image48               whereHelperstring
	Image72               whereHelperstring
	Image192              whereHelperstring
	Image512              whereHelperstring
	ImageOriginal         whereHelperstring
	Title                 whereHelperstring
	BotID                 whereHelperstring
	APIAppID              whereHelperstring
	StatusText            whereHelperstring
	StatusEmoji           whereHelperstring
	StatusExpiration      whereHelperint64
	Team                  whereHelperstring
	CreatedAt             whereHelpertime_Time
	UpdatedAt             whereHelpertime_Time
}{
	UserID:                whereHelperstring{/* contains filtered or unexported fields */},
	FirstName:             whereHelperstring{/* contains filtered or unexported fields */},
	LastName:              whereHelperstring{/* contains filtered or unexported fields */},
	RealName:              whereHelperstring{/* contains filtered or unexported fields */},
	RealNameNormalized:    whereHelperstring{/* contains filtered or unexported fields */},
	DisplayName:           whereHelperstring{/* contains filtered or unexported fields */},
	DisplayNameNormalized: whereHelperstring{/* contains filtered or unexported fields */},
	Email:                 whereHelperstring{/* contains filtered or unexported fields */},
	Skype:                 whereHelperstring{/* contains filtered or unexported fields */},
	Phone:                 whereHelperstring{/* contains filtered or unexported fields */},
	Image24:               whereHelperstring{/* contains filtered or unexported fields */},
	Image32:               whereHelperstring{/* contains filtered or unexported fields */},
	Image48:               whereHelperstring{/* contains filtered or unexported fields */},
	Image72:               whereHelperstring{/* contains filtered or unexported fields */},
	Image192:              whereHelperstring{/* contains filtered or unexported fields */},
	Image512:              whereHelperstring{/* contains filtered or unexported fields */},
	ImageOriginal:         whereHelperstring{/* contains filtered or unexported fields */},
	Title:                 whereHelperstring{/* contains filtered or unexported fields */},
	BotID:                 whereHelperstring{/* contains filtered or unexported fields */},
	APIAppID:              whereHelperstring{/* contains filtered or unexported fields */},
	StatusText:            whereHelperstring{/* contains filtered or unexported fields */},
	StatusEmoji:           whereHelperstring{/* contains filtered or unexported fields */},
	StatusExpiration:      whereHelperint64{/* contains filtered or unexported fields */},
	Team:                  whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:             whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:             whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var UserRels = struct {
}{}

UserRels is where relationship names are stored.

View Source
var UserWhere = struct {
	ID                whereHelperstring
	TeamID            whereHelperstring
	Name              whereHelperstring
	Deleted           whereHelperbool
	Color             whereHelperstring
	RealName          whereHelperstring
	TZ                whereHelperstring
	TZLabel           whereHelperstring
	TZOffset          whereHelperint64
	IsBot             whereHelperbool
	IsAdmin           whereHelperbool
	IsOwner           whereHelperbool
	IsPrimaryOwner    whereHelperbool
	IsRestricted      whereHelperbool
	IsUltraRestricted whereHelperbool
	IsStranger        whereHelperbool
	IsAppUser         whereHelperbool
	IsInvitedUser     whereHelperbool
	Has2fa            whereHelperbool
	HasFiles          whereHelperbool
	Presence          whereHelperstring
	Locale            whereHelperstring
	CreatedAt         whereHelpertime_Time
	UpdatedAt         whereHelpertime_Time
}{
	ID:                whereHelperstring{/* contains filtered or unexported fields */},
	TeamID:            whereHelperstring{/* contains filtered or unexported fields */},
	Name:              whereHelperstring{/* contains filtered or unexported fields */},
	Deleted:           whereHelperbool{/* contains filtered or unexported fields */},
	Color:             whereHelperstring{/* contains filtered or unexported fields */},
	RealName:          whereHelperstring{/* contains filtered or unexported fields */},
	TZ:                whereHelperstring{/* contains filtered or unexported fields */},
	TZLabel:           whereHelperstring{/* contains filtered or unexported fields */},
	TZOffset:          whereHelperint64{/* contains filtered or unexported fields */},
	IsBot:             whereHelperbool{/* contains filtered or unexported fields */},
	IsAdmin:           whereHelperbool{/* contains filtered or unexported fields */},
	IsOwner:           whereHelperbool{/* contains filtered or unexported fields */},
	IsPrimaryOwner:    whereHelperbool{/* contains filtered or unexported fields */},
	IsRestricted:      whereHelperbool{/* contains filtered or unexported fields */},
	IsUltraRestricted: whereHelperbool{/* contains filtered or unexported fields */},
	IsStranger:        whereHelperbool{/* contains filtered or unexported fields */},
	IsAppUser:         whereHelperbool{/* contains filtered or unexported fields */},
	IsInvitedUser:     whereHelperbool{/* contains filtered or unexported fields */},
	Has2fa:            whereHelperbool{/* contains filtered or unexported fields */},
	HasFiles:          whereHelperbool{/* contains filtered or unexported fields */},
	Presence:          whereHelperstring{/* contains filtered or unexported fields */},
	Locale:            whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:         whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:         whereHelpertime_Time{/* contains filtered or unexported fields */},
}

Functions

func AddChannelHook

func AddChannelHook(hookPoint boil.HookPoint, channelHook ChannelHook)

AddChannelHook registers your hook function for all future operations.

func AddFileHook added in v0.2.2

func AddFileHook(hookPoint boil.HookPoint, fileHook FileHook)

AddFileHook registers your hook function for all future operations.

func AddMessageHook

func AddMessageHook(hookPoint boil.HookPoint, messageHook MessageHook)

AddMessageHook registers your hook function for all future operations.

func AddRelMessageFileHook added in v0.2.2

func AddRelMessageFileHook(hookPoint boil.HookPoint, relMessageFileHook RelMessageFileHook)

AddRelMessageFileHook registers your hook function for all future operations.

func AddUserHook

func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)

AddUserHook registers your hook function for all future operations.

func AddUserProfileHook added in v0.2.0

func AddUserProfileHook(hookPoint boil.HookPoint, userProfileHook UserProfileHook)

AddUserProfileHook registers your hook function for all future operations.

func ChannelExists

func ChannelExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

ChannelExists checks if the Channel row exists.

func Channels

func Channels(mods ...qm.QueryMod) channelQuery

Channels retrieves all the records using an executor.

func FileExists added in v0.2.2

func FileExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

FileExists checks if the File row exists.

func Files added in v0.2.2

func Files(mods ...qm.QueryMod) fileQuery

Files retrieves all the records using an executor.

func MessageExists

func MessageExists(ctx context.Context, exec boil.ContextExecutor, timestamp string) (bool, error)

MessageExists checks if the Message row exists.

func Messages

func Messages(mods ...qm.QueryMod) messageQuery

Messages retrieves all the records using an executor.

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func RelMessageFileExists added in v0.2.2

func RelMessageFileExists(ctx context.Context, exec boil.ContextExecutor, messageTimestamp string, fileID string) (bool, error)

RelMessageFileExists checks if the RelMessageFile row exists.

func RelMessageFiles added in v0.2.2

func RelMessageFiles(mods ...qm.QueryMod) relMessageFileQuery

RelMessageFiles retrieves all the records using an executor.

func UserExists

func UserExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

UserExists checks if the User row exists.

func UserProfileExists added in v0.2.0

func UserProfileExists(ctx context.Context, exec boil.ContextExecutor, userID string) (bool, error)

UserProfileExists checks if the UserProfile row exists.

func UserProfiles added in v0.2.0

func UserProfiles(mods ...qm.QueryMod) userProfileQuery

UserProfiles retrieves all the records using an executor.

func Users

func Users(mods ...qm.QueryMod) userQuery

Users retrieves all the records using an executor.

Types

type Channel

type Channel struct {
	ID                 string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	IsOpen             bool      `boil:"is_open" json:"is_open" toml:"is_open" yaml:"is_open"`
	LastRead           string    `boil:"last_read" json:"last_read" toml:"last_read" yaml:"last_read"`
	UnreadCount        int64     `boil:"unread_count" json:"unread_count" toml:"unread_count" yaml:"unread_count"`
	UnreadCountDisplay int64     `boil:"unread_count_display" json:"unread_count_display" toml:"unread_count_display" yaml:"unread_count_display"`
	IsGroup            bool      `boil:"is_group" json:"is_group" toml:"is_group" yaml:"is_group"`
	IsShared           bool      `boil:"is_shared" json:"is_shared" toml:"is_shared" yaml:"is_shared"`
	IsIm               bool      `boil:"is_im" json:"is_im" toml:"is_im" yaml:"is_im"`
	IsExtShared        bool      `boil:"is_ext_shared" json:"is_ext_shared" toml:"is_ext_shared" yaml:"is_ext_shared"`
	IsOrgShared        bool      `boil:"is_org_shared" json:"is_org_shared" toml:"is_org_shared" yaml:"is_org_shared"`
	IsPendingExtShared bool      `boil:"is_pending_ext_shared" json:"is_pending_ext_shared" toml:"is_pending_ext_shared" yaml:"is_pending_ext_shared"`
	IsPrivate          bool      `boil:"is_private" json:"is_private" toml:"is_private" yaml:"is_private"`
	IsMpim             bool      `boil:"is_mpim" json:"is_mpim" toml:"is_mpim" yaml:"is_mpim"`
	Unlinked           int64     `boil:"unlinked" json:"unlinked" toml:"unlinked" yaml:"unlinked"`
	NameNormalized     string    `boil:"name_normalized" json:"name_normalized" toml:"name_normalized" yaml:"name_normalized"`
	NumMembers         int64     `boil:"num_members" json:"num_members" toml:"num_members" yaml:"num_members"`
	Priority           float64   `boil:"priority" json:"priority" toml:"priority" yaml:"priority"`
	User               string    `boil:"user" json:"user" toml:"user" yaml:"user"`
	Name               string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	Creator            string    `boil:"creator" json:"creator" toml:"creator" yaml:"creator"`
	IsArchived         bool      `boil:"is_archived" json:"is_archived" toml:"is_archived" yaml:"is_archived"`
	Topic              string    `boil:"topic" json:"topic" toml:"topic" yaml:"topic"`
	Purpose            string    `boil:"purpose" json:"purpose" toml:"purpose" yaml:"purpose"`
	IsChannel          bool      `boil:"is_channel" json:"is_channel" toml:"is_channel" yaml:"is_channel"`
	IsGeneral          bool      `boil:"is_general" json:"is_general" toml:"is_general" yaml:"is_general"`
	IsMember           bool      `boil:"is_member" json:"is_member" toml:"is_member" yaml:"is_member"`
	Locale             string    `boil:"locale" json:"locale" toml:"locale" yaml:"locale"`
	CreatedAt          time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *channelR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L channelL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Channel is an object representing the database table.

func FindChannel

func FindChannel(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Channel, error)

FindChannel retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Channel) Delete

func (o *Channel) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Channel record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Channel) Insert

func (o *Channel) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Channel) Reload

func (o *Channel) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Channel) Update

func (o *Channel) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Channel. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

type ChannelHook

type ChannelHook func(context.Context, boil.ContextExecutor, *Channel) error

ChannelHook is the signature for custom Channel hook methods

type ChannelSlice

type ChannelSlice []*Channel

ChannelSlice is an alias for a slice of pointers to Channel. This should generally be used opposed to []Channel.

func (ChannelSlice) DeleteAll

func (o ChannelSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*ChannelSlice) ReloadAll

func (o *ChannelSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (ChannelSlice) UpdateAll

func (o ChannelSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type File added in v0.2.2

type File struct {
	ID                 string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name               string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	Title              string    `boil:"title" json:"title" toml:"title" yaml:"title"`
	Mimetype           string    `boil:"mimetype" json:"mimetype" toml:"mimetype" yaml:"mimetype"`
	ImageExifRotation  int64     `boil:"image_exif_rotation" json:"image_exif_rotation" toml:"image_exif_rotation" yaml:"image_exif_rotation"`
	Filetype           string    `boil:"filetype" json:"filetype" toml:"filetype" yaml:"filetype"`
	PrettyType         string    `boil:"pretty_type" json:"pretty_type" toml:"pretty_type" yaml:"pretty_type"`
	User               string    `boil:"user" json:"user" toml:"user" yaml:"user"`
	Mode               string    `boil:"mode" json:"mode" toml:"mode" yaml:"mode"`
	Editable           bool      `boil:"editable" json:"editable" toml:"editable" yaml:"editable"`
	IsExternal         bool      `boil:"is_external" json:"is_external" toml:"is_external" yaml:"is_external"`
	ExternalType       string    `boil:"external_type" json:"external_type" toml:"external_type" yaml:"external_type"`
	Size               int64     `boil:"size" json:"size" toml:"size" yaml:"size"`
	URLPrivate         string    `boil:"url_private" json:"url_private" toml:"url_private" yaml:"url_private"`
	URLPrivateDownload string    `boil:"url_private_download" json:"url_private_download" toml:"url_private_download" yaml:"url_private_download"`
	OriginalH          int64     `boil:"original_h" json:"original_h" toml:"original_h" yaml:"original_h"`
	OriginalW          int64     `boil:"original_w" json:"original_w" toml:"original_w" yaml:"original_w"`
	Thumb64            string    `boil:"thumb64" json:"thumb64" toml:"thumb64" yaml:"thumb64"`
	Thumb80            string    `boil:"thumb80" json:"thumb80" toml:"thumb80" yaml:"thumb80"`
	Thumb160           string    `boil:"thumb160" json:"thumb160" toml:"thumb160" yaml:"thumb160"`
	Thumb360           string    `boil:"thumb360" json:"thumb360" toml:"thumb360" yaml:"thumb360"`
	Thumb360Gif        string    `boil:"thumb360_gif" json:"thumb360_gif" toml:"thumb360_gif" yaml:"thumb360_gif"`
	Thumb360W          int64     `boil:"thumb360_w" json:"thumb360_w" toml:"thumb360_w" yaml:"thumb360_w"`
	Thumb360H          int64     `boil:"thumb360_h" json:"thumb360_h" toml:"thumb360_h" yaml:"thumb360_h"`
	Thumb480           string    `boil:"thumb480" json:"thumb480" toml:"thumb480" yaml:"thumb480"`
	Thumb480W          int64     `boil:"thumb480_w" json:"thumb480_w" toml:"thumb480_w" yaml:"thumb480_w"`
	Thumb480H          int64     `boil:"thumb480_h" json:"thumb480_h" toml:"thumb480_h" yaml:"thumb480_h"`
	Thumb720           string    `boil:"thumb720" json:"thumb720" toml:"thumb720" yaml:"thumb720"`
	Thumb720W          int64     `boil:"thumb720_w" json:"thumb720_w" toml:"thumb720_w" yaml:"thumb720_w"`
	Thumb720H          int64     `boil:"thumb720_h" json:"thumb720_h" toml:"thumb720_h" yaml:"thumb720_h"`
	Thumb960           string    `boil:"thumb960" json:"thumb960" toml:"thumb960" yaml:"thumb960"`
	Thumb960W          int64     `boil:"thumb960_w" json:"thumb960_w" toml:"thumb960_w" yaml:"thumb960_w"`
	Thumb960H          int64     `boil:"thumb960_h" json:"thumb960_h" toml:"thumb960_h" yaml:"thumb960_h"`
	Thumb1024          string    `boil:"thumb1024" json:"thumb1024" toml:"thumb1024" yaml:"thumb1024"`
	Thumb1024W         int64     `boil:"thumb1024_w" json:"thumb1024_w" toml:"thumb1024_w" yaml:"thumb1024_w"`
	Thumb1024H         int64     `boil:"thumb1024_h" json:"thumb1024_h" toml:"thumb1024_h" yaml:"thumb1024_h"`
	Permalink          string    `boil:"permalink" json:"permalink" toml:"permalink" yaml:"permalink"`
	PermalinkPublic    string    `boil:"permalink_public" json:"permalink_public" toml:"permalink_public" yaml:"permalink_public"`
	EditLink           string    `boil:"edit_link" json:"edit_link" toml:"edit_link" yaml:"edit_link"`
	Preview            string    `boil:"preview" json:"preview" toml:"preview" yaml:"preview"`
	PreviewHighlight   string    `boil:"preview_highlight" json:"preview_highlight" toml:"preview_highlight" yaml:"preview_highlight"`
	Lines              int64     `boil:"lines" json:"lines" toml:"lines" yaml:"lines"`
	LinesMore          int64     `boil:"lines_more" json:"lines_more" toml:"lines_more" yaml:"lines_more"`
	IsPublic           bool      `boil:"is_public" json:"is_public" toml:"is_public" yaml:"is_public"`
	PublicURLShared    bool      `boil:"public_url_shared" json:"public_url_shared" toml:"public_url_shared" yaml:"public_url_shared"`
	CommentsCount      int64     `boil:"comments_count" json:"comments_count" toml:"comments_count" yaml:"comments_count"`
	NumStars           int64     `boil:"num_stars" json:"num_stars" toml:"num_stars" yaml:"num_stars"`
	IsStarred          bool      `boil:"is_starred" json:"is_starred" toml:"is_starred" yaml:"is_starred"`
	CreatedAt          time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *fileR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L fileL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

File is an object representing the database table.

func FindFile added in v0.2.2

func FindFile(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*File, error)

FindFile retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*File) Delete added in v0.2.2

func (o *File) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single File record with an executor. Delete will match against the primary key column to find the record to delete.

func (*File) Insert added in v0.2.2

func (o *File) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*File) Reload added in v0.2.2

func (o *File) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*File) Update added in v0.2.2

func (o *File) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the File. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

type FileHook added in v0.2.2

type FileHook func(context.Context, boil.ContextExecutor, *File) error

FileHook is the signature for custom File hook methods

type FileSlice added in v0.2.2

type FileSlice []*File

FileSlice is an alias for a slice of pointers to File. This should generally be used opposed to []File.

func (FileSlice) DeleteAll added in v0.2.2

func (o FileSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*FileSlice) ReloadAll added in v0.2.2

func (o *FileSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (FileSlice) UpdateAll added in v0.2.2

func (o FileSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

type Message

type Message struct {
	ClientMSGID      string    `boil:"client_msg_id" json:"client_msg_id" toml:"client_msg_id" yaml:"client_msg_id"`
	Type             string    `boil:"type" json:"type" toml:"type" yaml:"type"`
	Channel          string    `boil:"channel" json:"channel" toml:"channel" yaml:"channel"`
	User             string    `boil:"user" json:"user" toml:"user" yaml:"user"`
	Text             string    `boil:"text" json:"text" toml:"text" yaml:"text"`
	Timestamp        string    `boil:"timestamp" json:"timestamp" toml:"timestamp" yaml:"timestamp"`
	ThreadTimestamp  string    `boil:"thread_timestamp" json:"thread_timestamp" toml:"thread_timestamp" yaml:"thread_timestamp"`
	IsStarred        bool      `boil:"is_starred" json:"is_starred" toml:"is_starred" yaml:"is_starred"`
	LastRead         string    `boil:"last_read" json:"last_read" toml:"last_read" yaml:"last_read"`
	Subscribed       bool      `boil:"subscribed" json:"subscribed" toml:"subscribed" yaml:"subscribed"`
	UnreadCount      int64     `boil:"unread_count" json:"unread_count" toml:"unread_count" yaml:"unread_count"`
	SubType          string    `boil:"sub_type" json:"sub_type" toml:"sub_type" yaml:"sub_type"`
	Hidden           bool      `boil:"hidden" json:"hidden" toml:"hidden" yaml:"hidden"`
	DeletedTimestamp string    `boil:"deleted_timestamp" json:"deleted_timestamp" toml:"deleted_timestamp" yaml:"deleted_timestamp"`
	EventTimestamp   string    `boil:"event_timestamp" json:"event_timestamp" toml:"event_timestamp" yaml:"event_timestamp"`
	BotID            string    `boil:"bot_id" json:"bot_id" toml:"bot_id" yaml:"bot_id"`
	Username         string    `boil:"username" json:"username" toml:"username" yaml:"username"`
	Inviter          string    `boil:"inviter" json:"inviter" toml:"inviter" yaml:"inviter"`
	Topic            string    `boil:"topic" json:"topic" toml:"topic" yaml:"topic"`
	Purpose          string    `boil:"purpose" json:"purpose" toml:"purpose" yaml:"purpose"`
	Name             string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	OldName          string    `boil:"old_name" json:"old_name" toml:"old_name" yaml:"old_name"`
	ReplyCount       int64     `boil:"reply_count" json:"reply_count" toml:"reply_count" yaml:"reply_count"`
	ParentUserID     string    `boil:"parent_user_id" json:"parent_user_id" toml:"parent_user_id" yaml:"parent_user_id"`
	Upload           bool      `boil:"upload" json:"upload" toml:"upload" yaml:"upload"`
	ItemType         string    `boil:"item_type" json:"item_type" toml:"item_type" yaml:"item_type"`
	ReplyTo          int64     `boil:"reply_to" json:"reply_to" toml:"reply_to" yaml:"reply_to"`
	Team             string    `boil:"team" json:"team" toml:"team" yaml:"team"`
	ResponseType     string    `boil:"response_type" json:"response_type" toml:"response_type" yaml:"response_type"`
	ReplaceOriginal  bool      `boil:"replace_original" json:"replace_original" toml:"replace_original" yaml:"replace_original"`
	DeleteOriginal   bool      `boil:"delete_original" json:"delete_original" toml:"delete_original" yaml:"delete_original"`
	CreatedAt        time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *messageR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L messageL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Message is an object representing the database table.

func FindMessage

func FindMessage(ctx context.Context, exec boil.ContextExecutor, timestamp string, selectCols ...string) (*Message, error)

FindMessage retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Message) Delete

func (o *Message) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Message record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Message) Insert

func (o *Message) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Message) Reload

func (o *Message) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Message) Update

func (o *Message) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Message. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

type MessageHook

type MessageHook func(context.Context, boil.ContextExecutor, *Message) error

MessageHook is the signature for custom Message hook methods

type MessageSlice

type MessageSlice []*Message

MessageSlice is an alias for a slice of pointers to Message. This should generally be used opposed to []Message.

func (MessageSlice) DeleteAll

func (o MessageSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*MessageSlice) ReloadAll

func (o *MessageSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (MessageSlice) UpdateAll

func (o MessageSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type RelMessageFile added in v0.2.2

type RelMessageFile struct {
	MessageTimestamp string `boil:"message_timestamp" json:"message_timestamp" toml:"message_timestamp" yaml:"message_timestamp"`
	FileID           string `boil:"file_id" json:"file_id" toml:"file_id" yaml:"file_id"`

	R *relMessageFileR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L relMessageFileL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RelMessageFile is an object representing the database table.

func FindRelMessageFile added in v0.2.2

func FindRelMessageFile(ctx context.Context, exec boil.ContextExecutor, messageTimestamp string, fileID string, selectCols ...string) (*RelMessageFile, error)

FindRelMessageFile retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*RelMessageFile) Delete added in v0.2.2

func (o *RelMessageFile) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single RelMessageFile record with an executor. Delete will match against the primary key column to find the record to delete.

func (*RelMessageFile) Insert added in v0.2.2

func (o *RelMessageFile) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*RelMessageFile) Reload added in v0.2.2

func (o *RelMessageFile) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*RelMessageFile) Update added in v0.2.2

func (o *RelMessageFile) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the RelMessageFile. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

type RelMessageFileHook added in v0.2.2

type RelMessageFileHook func(context.Context, boil.ContextExecutor, *RelMessageFile) error

RelMessageFileHook is the signature for custom RelMessageFile hook methods

type RelMessageFileSlice added in v0.2.2

type RelMessageFileSlice []*RelMessageFile

RelMessageFileSlice is an alias for a slice of pointers to RelMessageFile. This should generally be used opposed to []RelMessageFile.

func (RelMessageFileSlice) DeleteAll added in v0.2.2

DeleteAll deletes all rows in the slice, using an executor.

func (*RelMessageFileSlice) ReloadAll added in v0.2.2

func (o *RelMessageFileSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (RelMessageFileSlice) UpdateAll added in v0.2.2

func (o RelMessageFileSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type User

type User struct {
	ID                string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	TeamID            string    `boil:"team_id" json:"team_id" toml:"team_id" yaml:"team_id"`
	Name              string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	Deleted           bool      `boil:"deleted" json:"deleted" toml:"deleted" yaml:"deleted"`
	Color             string    `boil:"color" json:"color" toml:"color" yaml:"color"`
	RealName          string    `boil:"real_name" json:"real_name" toml:"real_name" yaml:"real_name"`
	TZ                string    `boil:"tz" json:"tz" toml:"tz" yaml:"tz"`
	TZLabel           string    `boil:"tz_label" json:"tz_label" toml:"tz_label" yaml:"tz_label"`
	TZOffset          int64     `boil:"tz_offset" json:"tz_offset" toml:"tz_offset" yaml:"tz_offset"`
	IsBot             bool      `boil:"is_bot" json:"is_bot" toml:"is_bot" yaml:"is_bot"`
	IsAdmin           bool      `boil:"is_admin" json:"is_admin" toml:"is_admin" yaml:"is_admin"`
	IsOwner           bool      `boil:"is_owner" json:"is_owner" toml:"is_owner" yaml:"is_owner"`
	IsPrimaryOwner    bool      `boil:"is_primary_owner" json:"is_primary_owner" toml:"is_primary_owner" yaml:"is_primary_owner"`
	IsRestricted      bool      `boil:"is_restricted" json:"is_restricted" toml:"is_restricted" yaml:"is_restricted"`
	IsUltraRestricted bool      `boil:"is_ultra_restricted" json:"is_ultra_restricted" toml:"is_ultra_restricted" yaml:"is_ultra_restricted"`
	IsStranger        bool      `boil:"is_stranger" json:"is_stranger" toml:"is_stranger" yaml:"is_stranger"`
	IsAppUser         bool      `boil:"is_app_user" json:"is_app_user" toml:"is_app_user" yaml:"is_app_user"`
	IsInvitedUser     bool      `boil:"is_invited_user" json:"is_invited_user" toml:"is_invited_user" yaml:"is_invited_user"`
	Has2fa            bool      `boil:"has_2fa" json:"has_2fa" toml:"has_2fa" yaml:"has_2fa"`
	HasFiles          bool      `boil:"has_files" json:"has_files" toml:"has_files" yaml:"has_files"`
	Presence          string    `boil:"presence" json:"presence" toml:"presence" yaml:"presence"`
	Locale            string    `boil:"locale" json:"locale" toml:"locale" yaml:"locale"`
	CreatedAt         time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt         time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *userR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L userL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

User is an object representing the database table.

func FindUser

func FindUser(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*User, error)

FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*User) Delete

func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single User record with an executor. Delete will match against the primary key column to find the record to delete.

func (*User) Insert

func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*User) Reload

func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*User) Update

func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the User. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

type UserHook

type UserHook func(context.Context, boil.ContextExecutor, *User) error

UserHook is the signature for custom User hook methods

type UserProfile added in v0.2.0

type UserProfile struct {
	UserID                string    `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	FirstName             string    `boil:"first_name" json:"first_name" toml:"first_name" yaml:"first_name"`
	LastName              string    `boil:"last_name" json:"last_name" toml:"last_name" yaml:"last_name"`
	RealName              string    `boil:"real_name" json:"real_name" toml:"real_name" yaml:"real_name"`
	RealNameNormalized    string    `boil:"real_name_normalized" json:"real_name_normalized" toml:"real_name_normalized" yaml:"real_name_normalized"`
	DisplayName           string    `boil:"display_name" json:"display_name" toml:"display_name" yaml:"display_name"`
	DisplayNameNormalized string    `boil:"display_name_normalized" json:"display_name_normalized" toml:"display_name_normalized" yaml:"display_name_normalized"`
	Email                 string    `boil:"email" json:"email" toml:"email" yaml:"email"`
	Skype                 string    `boil:"skype" json:"skype" toml:"skype" yaml:"skype"`
	Phone                 string    `boil:"phone" json:"phone" toml:"phone" yaml:"phone"`
	Image24               string    `boil:"image24" json:"image24" toml:"image24" yaml:"image24"`
	Image32               string    `boil:"image32" json:"image32" toml:"image32" yaml:"image32"`
	Image48               string    `boil:"image48" json:"image48" toml:"image48" yaml:"image48"`
	Image72               string    `boil:"image72" json:"image72" toml:"image72" yaml:"image72"`
	Image192              string    `boil:"image192" json:"image192" toml:"image192" yaml:"image192"`
	Image512              string    `boil:"image512" json:"image512" toml:"image512" yaml:"image512"`
	ImageOriginal         string    `boil:"image_original" json:"image_original" toml:"image_original" yaml:"image_original"`
	Title                 string    `boil:"title" json:"title" toml:"title" yaml:"title"`
	BotID                 string    `boil:"bot_id" json:"bot_id" toml:"bot_id" yaml:"bot_id"`
	APIAppID              string    `boil:"api_app_id" json:"api_app_id" toml:"api_app_id" yaml:"api_app_id"`
	StatusText            string    `boil:"status_text" json:"status_text" toml:"status_text" yaml:"status_text"`
	StatusEmoji           string    `boil:"status_emoji" json:"status_emoji" toml:"status_emoji" yaml:"status_emoji"`
	StatusExpiration      int64     `boil:"status_expiration" json:"status_expiration" toml:"status_expiration" yaml:"status_expiration"`
	Team                  string    `boil:"team" json:"team" toml:"team" yaml:"team"`
	CreatedAt             time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt             time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *userProfileR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L userProfileL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

UserProfile is an object representing the database table.

func FindUserProfile added in v0.2.0

func FindUserProfile(ctx context.Context, exec boil.ContextExecutor, userID string, selectCols ...string) (*UserProfile, error)

FindUserProfile retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*UserProfile) Delete added in v0.2.0

func (o *UserProfile) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single UserProfile record with an executor. Delete will match against the primary key column to find the record to delete.

func (*UserProfile) Insert added in v0.2.0

func (o *UserProfile) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*UserProfile) Reload added in v0.2.0

func (o *UserProfile) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*UserProfile) Update added in v0.2.0

func (o *UserProfile) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the UserProfile. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

type UserProfileHook added in v0.2.0

type UserProfileHook func(context.Context, boil.ContextExecutor, *UserProfile) error

UserProfileHook is the signature for custom UserProfile hook methods

type UserProfileSlice added in v0.2.0

type UserProfileSlice []*UserProfile

UserProfileSlice is an alias for a slice of pointers to UserProfile. This should generally be used opposed to []UserProfile.

func (UserProfileSlice) DeleteAll added in v0.2.0

func (o UserProfileSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*UserProfileSlice) ReloadAll added in v0.2.0

func (o *UserProfileSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (UserProfileSlice) UpdateAll added in v0.2.0

func (o UserProfileSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type UserSlice

type UserSlice []*User

UserSlice is an alias for a slice of pointers to User. This should generally be used opposed to []User.

func (UserSlice) DeleteAll

func (o UserSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*UserSlice) ReloadAll

func (o *UserSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (UserSlice) UpdateAll

func (o UserSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

Jump to

Keyboard shortcuts

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