user

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the user type in the database.
	Label = "user"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUsername holds the string denoting the username field in the database.
	FieldUsername = "username"
	// FieldPassword holds the string denoting the password field in the database.
	FieldPassword = "password"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeBindAccount holds the string denoting the bind_account edge name in mutations.
	EdgeBindAccount = "bind_account"
	// EdgePurchasedApp holds the string denoting the purchased_app edge name in mutations.
	EdgePurchasedApp = "purchased_app"
	// EdgeApp holds the string denoting the app edge name in mutations.
	EdgeApp = "app"
	// EdgeAppInst holds the string denoting the app_inst edge name in mutations.
	EdgeAppInst = "app_inst"
	// EdgeFeedConfig holds the string denoting the feed_config edge name in mutations.
	EdgeFeedConfig = "feed_config"
	// EdgeNotifyTarget holds the string denoting the notify_target edge name in mutations.
	EdgeNotifyTarget = "notify_target"
	// EdgeNotifyFlow holds the string denoting the notify_flow edge name in mutations.
	EdgeNotifyFlow = "notify_flow"
	// EdgeImage holds the string denoting the image edge name in mutations.
	EdgeImage = "image"
	// EdgeFile holds the string denoting the file edge name in mutations.
	EdgeFile = "file"
	// EdgeDeviceInfo holds the string denoting the device_info edge name in mutations.
	EdgeDeviceInfo = "device_info"
	// EdgeCreator holds the string denoting the creator edge name in mutations.
	EdgeCreator = "creator"
	// EdgeCreatedUser holds the string denoting the created_user edge name in mutations.
	EdgeCreatedUser = "created_user"
	// EdgeUserDevice holds the string denoting the user_device edge name in mutations.
	EdgeUserDevice = "user_device"
	// Table holds the table name of the user in the database.
	Table = "users"
	// BindAccountTable is the table that holds the bind_account relation/edge.
	BindAccountTable = "accounts"
	// BindAccountInverseTable is the table name for the Account entity.
	// It exists in this package in order to avoid circular dependency with the "account" package.
	BindAccountInverseTable = "accounts"
	// BindAccountColumn is the table column denoting the bind_account relation/edge.
	BindAccountColumn = "user_bind_account"
	// PurchasedAppTable is the table that holds the purchased_app relation/edge. The primary key declared below.
	PurchasedAppTable = "user_purchased_app"
	// PurchasedAppInverseTable is the table name for the AppInfo entity.
	// It exists in this package in order to avoid circular dependency with the "appinfo" package.
	PurchasedAppInverseTable = "app_infos"
	// AppTable is the table that holds the app relation/edge.
	AppTable = "apps"
	// AppInverseTable is the table name for the App entity.
	// It exists in this package in order to avoid circular dependency with the "app" package.
	AppInverseTable = "apps"
	// AppColumn is the table column denoting the app relation/edge.
	AppColumn = "user_app"
	// AppInstTable is the table that holds the app_inst relation/edge.
	AppInstTable = "app_insts"
	// AppInstInverseTable is the table name for the AppInst entity.
	// It exists in this package in order to avoid circular dependency with the "appinst" package.
	AppInstInverseTable = "app_insts"
	// AppInstColumn is the table column denoting the app_inst relation/edge.
	AppInstColumn = "user_app_inst"
	// FeedConfigTable is the table that holds the feed_config relation/edge.
	FeedConfigTable = "feed_configs"
	// FeedConfigInverseTable is the table name for the FeedConfig entity.
	// It exists in this package in order to avoid circular dependency with the "feedconfig" package.
	FeedConfigInverseTable = "feed_configs"
	// FeedConfigColumn is the table column denoting the feed_config relation/edge.
	FeedConfigColumn = "user_feed_config"
	// NotifyTargetTable is the table that holds the notify_target relation/edge.
	NotifyTargetTable = "notify_targets"
	// NotifyTargetInverseTable is the table name for the NotifyTarget entity.
	// It exists in this package in order to avoid circular dependency with the "notifytarget" package.
	NotifyTargetInverseTable = "notify_targets"
	// NotifyTargetColumn is the table column denoting the notify_target relation/edge.
	NotifyTargetColumn = "user_notify_target"
	// NotifyFlowTable is the table that holds the notify_flow relation/edge.
	NotifyFlowTable = "notify_flows"
	// NotifyFlowInverseTable is the table name for the NotifyFlow entity.
	// It exists in this package in order to avoid circular dependency with the "notifyflow" package.
	NotifyFlowInverseTable = "notify_flows"
	// NotifyFlowColumn is the table column denoting the notify_flow relation/edge.
	NotifyFlowColumn = "user_notify_flow"
	// ImageTable is the table that holds the image relation/edge.
	ImageTable = "images"
	// ImageInverseTable is the table name for the Image entity.
	// It exists in this package in order to avoid circular dependency with the "image" package.
	ImageInverseTable = "images"
	// ImageColumn is the table column denoting the image relation/edge.
	ImageColumn = "user_image"
	// FileTable is the table that holds the file relation/edge.
	FileTable = "files"
	// FileInverseTable is the table name for the File entity.
	// It exists in this package in order to avoid circular dependency with the "file" package.
	FileInverseTable = "files"
	// FileColumn is the table column denoting the file relation/edge.
	FileColumn = "user_file"
	// DeviceInfoTable is the table that holds the device_info relation/edge. The primary key declared below.
	DeviceInfoTable = "user_devices"
	// DeviceInfoInverseTable is the table name for the DeviceInfo entity.
	// It exists in this package in order to avoid circular dependency with the "deviceinfo" package.
	DeviceInfoInverseTable = "device_infos"
	// CreatorTable is the table that holds the creator relation/edge.
	CreatorTable = "users"
	// CreatorColumn is the table column denoting the creator relation/edge.
	CreatorColumn = "user_created_user"
	// CreatedUserTable is the table that holds the created_user relation/edge.
	CreatedUserTable = "users"
	// CreatedUserColumn is the table column denoting the created_user relation/edge.
	CreatedUserColumn = "user_created_user"
	// UserDeviceTable is the table that holds the user_device relation/edge.
	UserDeviceTable = "user_devices"
	// UserDeviceInverseTable is the table name for the UserDevice entity.
	// It exists in this package in order to avoid circular dependency with the "userdevice" package.
	UserDeviceInverseTable = "user_devices"
	// UserDeviceColumn is the table column denoting the user_device relation/edge.
	UserDeviceColumn = "user_id"
)

Variables

View Source
var (
	// PurchasedAppPrimaryKey and PurchasedAppColumn2 are the table columns denoting the
	// primary key for the purchased_app relation (M2M).
	PurchasedAppPrimaryKey = []string{"user_id", "app_info_id"}
	// DeviceInfoPrimaryKey and DeviceInfoColumn2 are the table columns denoting the
	// primary key for the device_info relation (M2M).
	DeviceInfoPrimaryKey = []string{"user_id", "device_id"}
)
View Source
var (
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Columns holds all SQL columns for user fields.

View Source
var ForeignKeys = []string{
	"user_created_user",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "users" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.User) predicate.User

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.User

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.User

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.User

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.User

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.User

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.User

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.User

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.User

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.User

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasApp added in v0.2.3

func HasApp() predicate.User

HasApp applies the HasEdge predicate on the "app" edge.

func HasAppInst added in v0.2.3

func HasAppInst() predicate.User

HasAppInst applies the HasEdge predicate on the "app_inst" edge.

func HasAppInstWith added in v0.2.3

func HasAppInstWith(preds ...predicate.AppInst) predicate.User

HasAppInstWith applies the HasEdge predicate on the "app_inst" edge with a given conditions (other predicates).

func HasAppWith added in v0.2.3

func HasAppWith(preds ...predicate.App) predicate.User

HasAppWith applies the HasEdge predicate on the "app" edge with a given conditions (other predicates).

func HasBindAccount

func HasBindAccount() predicate.User

HasBindAccount applies the HasEdge predicate on the "bind_account" edge.

func HasBindAccountWith

func HasBindAccountWith(preds ...predicate.Account) predicate.User

HasBindAccountWith applies the HasEdge predicate on the "bind_account" edge with a given conditions (other predicates).

func HasCreatedUser

func HasCreatedUser() predicate.User

HasCreatedUser applies the HasEdge predicate on the "created_user" edge.

func HasCreatedUserWith

func HasCreatedUserWith(preds ...predicate.User) predicate.User

HasCreatedUserWith applies the HasEdge predicate on the "created_user" edge with a given conditions (other predicates).

func HasCreator

func HasCreator() predicate.User

HasCreator applies the HasEdge predicate on the "creator" edge.

func HasCreatorWith

func HasCreatorWith(preds ...predicate.User) predicate.User

HasCreatorWith applies the HasEdge predicate on the "creator" edge with a given conditions (other predicates).

func HasDeviceInfo added in v0.2.1

func HasDeviceInfo() predicate.User

HasDeviceInfo applies the HasEdge predicate on the "device_info" edge.

func HasDeviceInfoWith added in v0.2.1

func HasDeviceInfoWith(preds ...predicate.DeviceInfo) predicate.User

HasDeviceInfoWith applies the HasEdge predicate on the "device_info" edge with a given conditions (other predicates).

func HasFeedConfig

func HasFeedConfig() predicate.User

HasFeedConfig applies the HasEdge predicate on the "feed_config" edge.

func HasFeedConfigWith

func HasFeedConfigWith(preds ...predicate.FeedConfig) predicate.User

HasFeedConfigWith applies the HasEdge predicate on the "feed_config" edge with a given conditions (other predicates).

func HasFile added in v0.1.3

func HasFile() predicate.User

HasFile applies the HasEdge predicate on the "file" edge.

func HasFileWith added in v0.1.3

func HasFileWith(preds ...predicate.File) predicate.User

HasFileWith applies the HasEdge predicate on the "file" edge with a given conditions (other predicates).

func HasImage added in v0.1.3

func HasImage() predicate.User

HasImage applies the HasEdge predicate on the "image" edge.

func HasImageWith added in v0.1.3

func HasImageWith(preds ...predicate.Image) predicate.User

HasImageWith applies the HasEdge predicate on the "image" edge with a given conditions (other predicates).

func HasNotifyFlow added in v0.1.0

func HasNotifyFlow() predicate.User

HasNotifyFlow applies the HasEdge predicate on the "notify_flow" edge.

func HasNotifyFlowWith added in v0.1.0

func HasNotifyFlowWith(preds ...predicate.NotifyFlow) predicate.User

HasNotifyFlowWith applies the HasEdge predicate on the "notify_flow" edge with a given conditions (other predicates).

func HasNotifyTarget added in v0.1.0

func HasNotifyTarget() predicate.User

HasNotifyTarget applies the HasEdge predicate on the "notify_target" edge.

func HasNotifyTargetWith added in v0.1.0

func HasNotifyTargetWith(preds ...predicate.NotifyTarget) predicate.User

HasNotifyTargetWith applies the HasEdge predicate on the "notify_target" edge with a given conditions (other predicates).

func HasPurchasedApp

func HasPurchasedApp() predicate.User

HasPurchasedApp applies the HasEdge predicate on the "purchased_app" edge.

func HasPurchasedAppWith

func HasPurchasedAppWith(preds ...predicate.AppInfo) predicate.User

HasPurchasedAppWith applies the HasEdge predicate on the "purchased_app" edge with a given conditions (other predicates).

func HasUserDevice added in v0.2.3

func HasUserDevice() predicate.User

HasUserDevice applies the HasEdge predicate on the "user_device" edge.

func HasUserDeviceWith added in v0.2.3

func HasUserDeviceWith(preds ...predicate.UserDevice) predicate.User

HasUserDeviceWith applies the HasEdge predicate on the "user_device" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id model.InternalID) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id model.InternalID) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id model.InternalID) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...model.InternalID) predicate.User

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id model.InternalID) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id model.InternalID) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id model.InternalID) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...model.InternalID) predicate.User

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.User) predicate.User

Or groups predicates with the OR operator between them.

func Password

func Password(v string) predicate.User

Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.

func PasswordContains

func PasswordContains(v string) predicate.User

PasswordContains applies the Contains predicate on the "password" field.

func PasswordContainsFold

func PasswordContainsFold(v string) predicate.User

PasswordContainsFold applies the ContainsFold predicate on the "password" field.

func PasswordEQ

func PasswordEQ(v string) predicate.User

PasswordEQ applies the EQ predicate on the "password" field.

func PasswordEqualFold

func PasswordEqualFold(v string) predicate.User

PasswordEqualFold applies the EqualFold predicate on the "password" field.

func PasswordGT

func PasswordGT(v string) predicate.User

PasswordGT applies the GT predicate on the "password" field.

func PasswordGTE

func PasswordGTE(v string) predicate.User

PasswordGTE applies the GTE predicate on the "password" field.

func PasswordHasPrefix

func PasswordHasPrefix(v string) predicate.User

PasswordHasPrefix applies the HasPrefix predicate on the "password" field.

func PasswordHasSuffix

func PasswordHasSuffix(v string) predicate.User

PasswordHasSuffix applies the HasSuffix predicate on the "password" field.

func PasswordIn

func PasswordIn(vs ...string) predicate.User

PasswordIn applies the In predicate on the "password" field.

func PasswordLT

func PasswordLT(v string) predicate.User

PasswordLT applies the LT predicate on the "password" field.

func PasswordLTE

func PasswordLTE(v string) predicate.User

PasswordLTE applies the LTE predicate on the "password" field.

func PasswordNEQ

func PasswordNEQ(v string) predicate.User

PasswordNEQ applies the NEQ predicate on the "password" field.

func PasswordNotIn

func PasswordNotIn(vs ...string) predicate.User

PasswordNotIn applies the NotIn predicate on the "password" field.

func StatusEQ

func StatusEQ(v Status) predicate.User

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.User

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.User

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.User

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func TypeEQ

func TypeEQ(v Type) predicate.User

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.User

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.User

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.User

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.User

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.User

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.User

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.User

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.User

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.User

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.User

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.User

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.User

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func Username

func Username(v string) predicate.User

Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.

func UsernameContains

func UsernameContains(v string) predicate.User

UsernameContains applies the Contains predicate on the "username" field.

func UsernameContainsFold

func UsernameContainsFold(v string) predicate.User

UsernameContainsFold applies the ContainsFold predicate on the "username" field.

func UsernameEQ

func UsernameEQ(v string) predicate.User

UsernameEQ applies the EQ predicate on the "username" field.

func UsernameEqualFold

func UsernameEqualFold(v string) predicate.User

UsernameEqualFold applies the EqualFold predicate on the "username" field.

func UsernameGT

func UsernameGT(v string) predicate.User

UsernameGT applies the GT predicate on the "username" field.

func UsernameGTE

func UsernameGTE(v string) predicate.User

UsernameGTE applies the GTE predicate on the "username" field.

func UsernameHasPrefix

func UsernameHasPrefix(v string) predicate.User

UsernameHasPrefix applies the HasPrefix predicate on the "username" field.

func UsernameHasSuffix

func UsernameHasSuffix(v string) predicate.User

UsernameHasSuffix applies the HasSuffix predicate on the "username" field.

func UsernameIn

func UsernameIn(vs ...string) predicate.User

UsernameIn applies the In predicate on the "username" field.

func UsernameLT

func UsernameLT(v string) predicate.User

UsernameLT applies the LT predicate on the "username" field.

func UsernameLTE

func UsernameLTE(v string) predicate.User

UsernameLTE applies the LTE predicate on the "username" field.

func UsernameNEQ

func UsernameNEQ(v string) predicate.User

UsernameNEQ applies the NEQ predicate on the "username" field.

func UsernameNotIn

func UsernameNotIn(vs ...string) predicate.User

UsernameNotIn applies the NotIn predicate on the "username" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption added in v0.1.4

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the User queries.

func ByApp added in v0.2.3

func ByApp(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByApp orders the results by app terms.

func ByAppCount added in v0.2.3

func ByAppCount(opts ...sql.OrderTermOption) OrderOption

ByAppCount orders the results by app count.

func ByAppInst added in v0.2.3

func ByAppInst(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByAppInst orders the results by app_inst terms.

func ByAppInstCount added in v0.2.3

func ByAppInstCount(opts ...sql.OrderTermOption) OrderOption

ByAppInstCount orders the results by app_inst count.

func ByBindAccount added in v0.1.4

func ByBindAccount(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByBindAccount orders the results by bind_account terms.

func ByBindAccountCount added in v0.1.4

func ByBindAccountCount(opts ...sql.OrderTermOption) OrderOption

ByBindAccountCount orders the results by bind_account count.

func ByCreatedAt added in v0.1.4

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByCreatedUser added in v0.1.4

func ByCreatedUser(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByCreatedUser orders the results by created_user terms.

func ByCreatedUserCount added in v0.1.4

func ByCreatedUserCount(opts ...sql.OrderTermOption) OrderOption

ByCreatedUserCount orders the results by created_user count.

func ByCreatorField added in v0.1.4

func ByCreatorField(field string, opts ...sql.OrderTermOption) OrderOption

ByCreatorField orders the results by creator field.

func ByDeviceInfo added in v0.2.1

func ByDeviceInfo(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByDeviceInfo orders the results by device_info terms.

func ByDeviceInfoCount added in v0.2.1

func ByDeviceInfoCount(opts ...sql.OrderTermOption) OrderOption

ByDeviceInfoCount orders the results by device_info count.

func ByFeedConfig added in v0.1.4

func ByFeedConfig(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByFeedConfig orders the results by feed_config terms.

func ByFeedConfigCount added in v0.1.4

func ByFeedConfigCount(opts ...sql.OrderTermOption) OrderOption

ByFeedConfigCount orders the results by feed_config count.

func ByFile added in v0.1.4

func ByFile(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByFile orders the results by file terms.

func ByFileCount added in v0.1.4

func ByFileCount(opts ...sql.OrderTermOption) OrderOption

ByFileCount orders the results by file count.

func ByID added in v0.1.4

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByImage added in v0.1.4

func ByImage(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByImage orders the results by image terms.

func ByImageCount added in v0.1.4

func ByImageCount(opts ...sql.OrderTermOption) OrderOption

ByImageCount orders the results by image count.

func ByNotifyFlow added in v0.1.4

func ByNotifyFlow(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByNotifyFlow orders the results by notify_flow terms.

func ByNotifyFlowCount added in v0.1.4

func ByNotifyFlowCount(opts ...sql.OrderTermOption) OrderOption

ByNotifyFlowCount orders the results by notify_flow count.

func ByNotifyTarget added in v0.1.4

func ByNotifyTarget(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByNotifyTarget orders the results by notify_target terms.

func ByNotifyTargetCount added in v0.1.4

func ByNotifyTargetCount(opts ...sql.OrderTermOption) OrderOption

ByNotifyTargetCount orders the results by notify_target count.

func ByPassword added in v0.1.4

func ByPassword(opts ...sql.OrderTermOption) OrderOption

ByPassword orders the results by the password field.

func ByPurchasedApp added in v0.1.4

func ByPurchasedApp(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPurchasedApp orders the results by purchased_app terms.

func ByPurchasedAppCount added in v0.1.4

func ByPurchasedAppCount(opts ...sql.OrderTermOption) OrderOption

ByPurchasedAppCount orders the results by purchased_app count.

func ByStatus added in v0.1.4

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByType added in v0.1.4

func ByType(opts ...sql.OrderTermOption) OrderOption

ByType orders the results by the type field.

func ByUpdatedAt added in v0.1.4

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUserDevice added in v0.2.3

func ByUserDevice(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByUserDevice orders the results by user_device terms.

func ByUserDeviceCount added in v0.2.3

func ByUserDeviceCount(opts ...sql.OrderTermOption) OrderOption

ByUserDeviceCount orders the results by user_device count.

func ByUsername added in v0.1.4

func ByUsername(opts ...sql.OrderTermOption) OrderOption

ByUsername orders the results by the username field.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusActive  Status = "active"
	StatusBlocked Status = "blocked"
)

Status values.

func (Status) String

func (s Status) String() string

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeAdmin    Type = "admin"
	TypeNormal   Type = "normal"
	TypeSentinel Type = "sentinel"
)

Type values.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

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