models

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApplicationColumns = struct {
	ID                  string
	CreatedAt           string
	UpdatedAt           string
	DeletedAt           string
	Name                string
	Webhook             string
	DefaultRole         string
	I18nApplicationName string
}{
	ID:                  "id",
	CreatedAt:           "created_at",
	UpdatedAt:           "updated_at",
	DeletedAt:           "deleted_at",
	Name:                "name",
	Webhook:             "webhook",
	DefaultRole:         "default_role",
	I18nApplicationName: "i18n_application_name",
}
View Source
var ApplicationRels = struct {
}{}

ApplicationRels is where relationship names are stored.

View Source
var ApplicationWhere = struct {
	ID                  whereHelperuint
	CreatedAt           whereHelpernull_Time
	UpdatedAt           whereHelpernull_Time
	DeletedAt           whereHelpernull_Time
	Name                whereHelperstring
	Webhook             whereHelperstring
	DefaultRole         whereHelpernull_Uint
	I18nApplicationName whereHelpernull_JSON
}{
	ID:                  whereHelperuint{/* contains filtered or unexported fields */},
	CreatedAt:           whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:           whereHelpernull_Time{/* contains filtered or unexported fields */},
	DeletedAt:           whereHelpernull_Time{/* contains filtered or unexported fields */},
	Name:                whereHelperstring{/* contains filtered or unexported fields */},
	Webhook:             whereHelperstring{/* contains filtered or unexported fields */},
	DefaultRole:         whereHelpernull_Uint{/* contains filtered or unexported fields */},
	I18nApplicationName: whereHelpernull_JSON{/* contains filtered or unexported fields */},
}
View Source
var BindingColumns = struct {
	ID            string
	CreatedAt     string
	UpdatedAt     string
	DeletedAt     string
	LoginType     string
	IdentifyToken string
	Mail          string
	Verified      string
	UserID        string
}{
	ID:            "id",
	CreatedAt:     "created_at",
	UpdatedAt:     "updated_at",
	DeletedAt:     "deleted_at",
	LoginType:     "login_type",
	IdentifyToken: "identify_token",
	Mail:          "mail",
	Verified:      "verified",
	UserID:        "user_id",
}
View Source
var BindingRels = struct {
}{}

BindingRels is where relationship names are stored.

View Source
var BindingWhere = struct {
	ID            whereHelperuint
	CreatedAt     whereHelpernull_Time
	UpdatedAt     whereHelpernull_Time
	DeletedAt     whereHelpernull_Time
	LoginType     whereHelperstring
	IdentifyToken whereHelperstring
	Mail          whereHelperstring
	Verified      whereHelpernull_Bool
	UserID        whereHelperuint
}{
	ID:            whereHelperuint{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:     whereHelpernull_Time{/* contains filtered or unexported fields */},
	DeletedAt:     whereHelpernull_Time{/* contains filtered or unexported fields */},
	LoginType:     whereHelperstring{/* contains filtered or unexported fields */},
	IdentifyToken: whereHelperstring{/* contains filtered or unexported fields */},
	Mail:          whereHelperstring{/* contains filtered or unexported fields */},
	Verified:      whereHelpernull_Bool{/* contains filtered or unexported fields */},
	UserID:        whereHelperuint{/* contains filtered or unexported fields */},
}
View Source
var DeviceAppColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
	DeviceID  string
	AppID     string
}{
	ID:        "id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
	DeviceID:  "device_id",
	AppID:     "app_id",
}
View Source
var DeviceAppRels = struct {
}{}

DeviceAppRels is where relationship names are stored.

View Source
var DeviceAppWhere = struct {
	ID        whereHelperuint
	CreatedAt whereHelpernull_Time
	UpdatedAt whereHelpernull_Time
	DeletedAt whereHelpernull_Time
	DeviceID  whereHelperstring
	AppID     whereHelperuint
}{
	ID:        whereHelperuint{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	DeviceID:  whereHelperstring{/* contains filtered or unexported fields */},
	AppID:     whereHelperuint{/* 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 OauthAuthorizationCodeColumns = struct {
	ID          string
	CreatedAt   string
	UpdatedAt   string
	DeletedAt   string
	UserID      string
	ClientID    string
	AppID       string
	Code        string
	RedirectURI string
	ExpireAt    string
	Scopes      string
}{
	ID:          "id",
	CreatedAt:   "created_at",
	UpdatedAt:   "updated_at",
	DeletedAt:   "deleted_at",
	UserID:      "user_id",
	ClientID:    "client_id",
	AppID:       "app_id",
	Code:        "code",
	RedirectURI: "redirect_uri",
	ExpireAt:    "expire_at",
	Scopes:      "scopes",
}
View Source
var OauthAuthorizationCodeRels = struct {
}{}

OauthAuthorizationCodeRels is where relationship names are stored.

View Source
var OauthAuthorizationCodeWhere = struct {
	ID          whereHelperuint
	CreatedAt   whereHelpernull_Time
	UpdatedAt   whereHelpernull_Time
	DeletedAt   whereHelpernull_Time
	UserID      whereHelperuint
	ClientID    whereHelperuint
	AppID       whereHelperuint
	Code        whereHelperstring
	RedirectURI whereHelperstring
	ExpireAt    whereHelpertime_Time
	Scopes      whereHelperstring
}{
	ID:          whereHelperuint{/* contains filtered or unexported fields */},
	CreatedAt:   whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:   whereHelpernull_Time{/* contains filtered or unexported fields */},
	DeletedAt:   whereHelpernull_Time{/* contains filtered or unexported fields */},
	UserID:      whereHelperuint{/* contains filtered or unexported fields */},
	ClientID:    whereHelperuint{/* contains filtered or unexported fields */},
	AppID:       whereHelperuint{/* contains filtered or unexported fields */},
	Code:        whereHelperstring{/* contains filtered or unexported fields */},
	RedirectURI: whereHelperstring{/* contains filtered or unexported fields */},
	ExpireAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	Scopes:      whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var OauthClientColumns = struct {
	ID          string
	CreatedAt   string
	UpdatedAt   string
	DeletedAt   string
	Key         string
	Secret      string
	Status      string
	UserID      string
	RedirectURI string
}{
	ID:          "id",
	CreatedAt:   "created_at",
	UpdatedAt:   "updated_at",
	DeletedAt:   "deleted_at",
	Key:         "key",
	Secret:      "secret",
	Status:      "status",
	UserID:      "user_id",
	RedirectURI: "redirect_uri",
}
View Source
var OauthClientRels = struct {
}{}

OauthClientRels is where relationship names are stored.

View Source
var OauthClientWhere = struct {
	ID          whereHelperuint
	CreatedAt   whereHelpernull_Time
	UpdatedAt   whereHelpernull_Time
	DeletedAt   whereHelpernull_Time
	Key         whereHelperstring
	Secret      whereHelperstring
	Status      whereHelperstring
	UserID      whereHelperuint
	RedirectURI whereHelperstring
}{
	ID:          whereHelperuint{/* contains filtered or unexported fields */},
	CreatedAt:   whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:   whereHelpernull_Time{/* contains filtered or unexported fields */},
	DeletedAt:   whereHelpernull_Time{/* contains filtered or unexported fields */},
	Key:         whereHelperstring{/* contains filtered or unexported fields */},
	Secret:      whereHelperstring{/* contains filtered or unexported fields */},
	Status:      whereHelperstring{/* contains filtered or unexported fields */},
	UserID:      whereHelperuint{/* contains filtered or unexported fields */},
	RedirectURI: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var RbacRoleColumns = struct {
	ID           string
	CreatedAt    string
	UpdatedAt    string
	DeletedAt    string
	Name         string
	AppID        string
	DefaultScope string
}{
	ID:           "id",
	CreatedAt:    "created_at",
	UpdatedAt:    "updated_at",
	DeletedAt:    "deleted_at",
	Name:         "name",
	AppID:        "app_id",
	DefaultScope: "default_scope",
}
View Source
var RbacRoleRels = struct {
}{}

RbacRoleRels is where relationship names are stored.

View Source
var RbacRoleScopeColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
	RoleID    string
	ScopeID   string
}{
	ID:        "id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
	RoleID:    "role_id",
	ScopeID:   "scope_id",
}
View Source
var RbacRoleScopeRels = struct {
}{}

RbacRoleScopeRels is where relationship names are stored.

View Source
var RbacRoleScopeWhere = struct {
	ID        whereHelperuint
	CreatedAt whereHelpernull_Time
	UpdatedAt whereHelpernull_Time
	DeletedAt whereHelpernull_Time
	RoleID    whereHelperuint
	ScopeID   whereHelperuint
}{
	ID:        whereHelperuint{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	RoleID:    whereHelperuint{/* contains filtered or unexported fields */},
	ScopeID:   whereHelperuint{/* contains filtered or unexported fields */},
}
View Source
var RbacRoleWhere = struct {
	ID           whereHelperuint
	CreatedAt    whereHelpernull_Time
	UpdatedAt    whereHelpernull_Time
	DeletedAt    whereHelpernull_Time
	Name         whereHelperstring
	AppID        whereHelperuint
	DefaultScope whereHelpernull_Uint
}{
	ID:           whereHelperuint{/* contains filtered or unexported fields */},
	CreatedAt:    whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:    whereHelpernull_Time{/* contains filtered or unexported fields */},
	DeletedAt:    whereHelpernull_Time{/* contains filtered or unexported fields */},
	Name:         whereHelperstring{/* contains filtered or unexported fields */},
	AppID:        whereHelperuint{/* contains filtered or unexported fields */},
	DefaultScope: whereHelpernull_Uint{/* contains filtered or unexported fields */},
}
View Source
var RbacScopeColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
	Name      string
	AppID     string
}{
	ID:        "id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
	Name:      "name",
	AppID:     "app_id",
}
View Source
var RbacScopeRels = struct {
}{}

RbacScopeRels is where relationship names are stored.

View Source
var RbacScopeWhere = struct {
	ID        whereHelperuint
	CreatedAt whereHelpernull_Time
	UpdatedAt whereHelpernull_Time
	DeletedAt whereHelpernull_Time
	Name      whereHelperstring
	AppID     whereHelperuint
}{
	ID:        whereHelperuint{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	AppID:     whereHelperuint{/* contains filtered or unexported fields */},
}
View Source
var RbacUserApplicationRoleColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
	UserID    string
	AppID     string
	RoleID    string
}{
	ID:        "id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
	UserID:    "user_id",
	AppID:     "app_id",
	RoleID:    "role_id",
}
View Source
var RbacUserApplicationRoleRels = struct {
}{}

RbacUserApplicationRoleRels is where relationship names are stored.

View Source
var RbacUserApplicationRoleWhere = struct {
	ID        whereHelperuint
	CreatedAt whereHelpernull_Time
	UpdatedAt whereHelpernull_Time
	DeletedAt whereHelpernull_Time
	UserID    whereHelperuint
	AppID     whereHelperuint
	RoleID    whereHelperuint
}{
	ID:        whereHelperuint{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UserID:    whereHelperuint{/* contains filtered or unexported fields */},
	AppID:     whereHelperuint{/* contains filtered or unexported fields */},
	RoleID:    whereHelperuint{/* contains filtered or unexported fields */},
}
View Source
var RefreshTokenColumns = struct {
	ID           string
	CreatedAt    string
	UpdatedAt    string
	DeletedAt    string
	UserID       string
	RefreshToken string
	ExpireAt     string
	DeviceAppID  string
	Scopes       string
}{
	ID:           "id",
	CreatedAt:    "created_at",
	UpdatedAt:    "updated_at",
	DeletedAt:    "deleted_at",
	UserID:       "user_id",
	RefreshToken: "refresh_token",
	ExpireAt:     "expire_at",
	DeviceAppID:  "device_app_id",
	Scopes:       "scopes",
}
View Source
var RefreshTokenRels = struct {
}{}

RefreshTokenRels is where relationship names are stored.

View Source
var RefreshTokenWhere = struct {
	ID           whereHelperuint
	CreatedAt    whereHelpernull_Time
	UpdatedAt    whereHelpernull_Time
	DeletedAt    whereHelpernull_Time
	UserID       whereHelperuint
	RefreshToken whereHelperstring
	ExpireAt     whereHelpertime_Time
	DeviceAppID  whereHelperuint
	Scopes       whereHelpernull_String
}{
	ID:           whereHelperuint{/* contains filtered or unexported fields */},
	CreatedAt:    whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:    whereHelpernull_Time{/* contains filtered or unexported fields */},
	DeletedAt:    whereHelpernull_Time{/* contains filtered or unexported fields */},
	UserID:       whereHelperuint{/* contains filtered or unexported fields */},
	RefreshToken: whereHelperstring{/* contains filtered or unexported fields */},
	ExpireAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeviceAppID:  whereHelperuint{/* contains filtered or unexported fields */},
	Scopes:       whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var SaltColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
	UserID    string
	Salt      string
}{
	ID:        "id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
	UserID:    "user_id",
	Salt:      "salt",
}
View Source
var SaltRels = struct {
}{}

SaltRels is where relationship names are stored.

View Source
var SaltWhere = struct {
	ID        whereHelperuint
	CreatedAt whereHelpernull_Time
	UpdatedAt whereHelpernull_Time
	DeletedAt whereHelpernull_Time
	UserID    whereHelperuint
	Salt      whereHelperstring
}{
	ID:        whereHelperuint{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UserID:    whereHelperuint{/* contains filtered or unexported fields */},
	Salt:      whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	Applications             string
	Bindings                 string
	DeviceApps               string
	OauthAuthorizationCodes  string
	OauthClients             string
	RbacRoleScopes           string
	RbacRoles                string
	RbacScopes               string
	RbacUserApplicationRoles string
	RefreshTokens            string
	Salts                    string
	Users                    string
}{
	Applications:             "applications",
	Bindings:                 "bindings",
	DeviceApps:               "device_apps",
	OauthAuthorizationCodes:  "oauth_authorization_codes",
	OauthClients:             "oauth_clients",
	RbacRoleScopes:           "rbac_role_scopes",
	RbacRoles:                "rbac_roles",
	RbacScopes:               "rbac_scopes",
	RbacUserApplicationRoles: "rbac_user_application_roles",
	RefreshTokens:            "refresh_tokens",
	Salts:                    "salts",
	Users:                    "users",
}
View Source
var UserColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
	Name      string
	Password  string
	Verified  string
	Avatar    string
}{
	ID:        "id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
	Name:      "name",
	Password:  "password",
	Verified:  "verified",
	Avatar:    "avatar",
}
View Source
var UserRels = struct {
}{}

UserRels is where relationship names are stored.

View Source
var UserWhere = struct {
	ID        whereHelperuint
	CreatedAt whereHelpernull_Time
	UpdatedAt whereHelpernull_Time
	DeletedAt whereHelpernull_Time
	Name      whereHelperstring
	Password  whereHelpernull_String
	Verified  whereHelpernull_Bool
	Avatar    whereHelpernull_String
}{
	ID:        whereHelperuint{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	Password:  whereHelpernull_String{/* contains filtered or unexported fields */},
	Verified:  whereHelpernull_Bool{/* contains filtered or unexported fields */},
	Avatar:    whereHelpernull_String{/* contains filtered or unexported fields */},
}

Functions

func AddApplicationHook

func AddApplicationHook(hookPoint boil.HookPoint, applicationHook ApplicationHook)

AddApplicationHook registers your hook function for all future operations.

func AddBindingHook

func AddBindingHook(hookPoint boil.HookPoint, bindingHook BindingHook)

AddBindingHook registers your hook function for all future operations.

func AddDeviceAppHook

func AddDeviceAppHook(hookPoint boil.HookPoint, deviceAppHook DeviceAppHook)

AddDeviceAppHook registers your hook function for all future operations.

func AddOauthAuthorizationCodeHook

func AddOauthAuthorizationCodeHook(hookPoint boil.HookPoint, oauthAuthorizationCodeHook OauthAuthorizationCodeHook)

AddOauthAuthorizationCodeHook registers your hook function for all future operations.

func AddOauthClientHook

func AddOauthClientHook(hookPoint boil.HookPoint, oauthClientHook OauthClientHook)

AddOauthClientHook registers your hook function for all future operations.

func AddRbacRoleHook

func AddRbacRoleHook(hookPoint boil.HookPoint, rbacRoleHook RbacRoleHook)

AddRbacRoleHook registers your hook function for all future operations.

func AddRbacRoleScopeHook

func AddRbacRoleScopeHook(hookPoint boil.HookPoint, rbacRoleScopeHook RbacRoleScopeHook)

AddRbacRoleScopeHook registers your hook function for all future operations.

func AddRbacScopeHook

func AddRbacScopeHook(hookPoint boil.HookPoint, rbacScopeHook RbacScopeHook)

AddRbacScopeHook registers your hook function for all future operations.

func AddRbacUserApplicationRoleHook

func AddRbacUserApplicationRoleHook(hookPoint boil.HookPoint, rbacUserApplicationRoleHook RbacUserApplicationRoleHook)

AddRbacUserApplicationRoleHook registers your hook function for all future operations.

func AddRefreshTokenHook

func AddRefreshTokenHook(hookPoint boil.HookPoint, refreshTokenHook RefreshTokenHook)

AddRefreshTokenHook registers your hook function for all future operations.

func AddSaltHook

func AddSaltHook(hookPoint boil.HookPoint, saltHook SaltHook)

AddSaltHook 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 ApplicationExists

func ApplicationExists(exec boil.Executor, iD uint) (bool, error)

ApplicationExists checks if the Application row exists.

func Applications

func Applications(mods ...qm.QueryMod) applicationQuery

Applications retrieves all the records using an executor.

func BindingExists

func BindingExists(exec boil.Executor, iD uint) (bool, error)

BindingExists checks if the Binding row exists.

func Bindings

func Bindings(mods ...qm.QueryMod) bindingQuery

Bindings retrieves all the records using an executor.

func DeviceAppExists

func DeviceAppExists(exec boil.Executor, iD uint) (bool, error)

DeviceAppExists checks if the DeviceApp row exists.

func DeviceApps

func DeviceApps(mods ...qm.QueryMod) deviceAppQuery

DeviceApps 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 OauthAuthorizationCodeExists

func OauthAuthorizationCodeExists(exec boil.Executor, iD uint) (bool, error)

OauthAuthorizationCodeExists checks if the OauthAuthorizationCode row exists.

func OauthAuthorizationCodes

func OauthAuthorizationCodes(mods ...qm.QueryMod) oauthAuthorizationCodeQuery

OauthAuthorizationCodes retrieves all the records using an executor.

func OauthClientExists

func OauthClientExists(exec boil.Executor, iD uint) (bool, error)

OauthClientExists checks if the OauthClient row exists.

func OauthClients

func OauthClients(mods ...qm.QueryMod) oauthClientQuery

OauthClients retrieves all the records using an executor.

func RbacRoleExists

func RbacRoleExists(exec boil.Executor, iD uint) (bool, error)

RbacRoleExists checks if the RbacRole row exists.

func RbacRoleScopeExists

func RbacRoleScopeExists(exec boil.Executor, iD uint) (bool, error)

RbacRoleScopeExists checks if the RbacRoleScope row exists.

func RbacRoleScopes

func RbacRoleScopes(mods ...qm.QueryMod) rbacRoleScopeQuery

RbacRoleScopes retrieves all the records using an executor.

func RbacRoles

func RbacRoles(mods ...qm.QueryMod) rbacRoleQuery

RbacRoles retrieves all the records using an executor.

func RbacScopeExists

func RbacScopeExists(exec boil.Executor, iD uint) (bool, error)

RbacScopeExists checks if the RbacScope row exists.

func RbacScopes

func RbacScopes(mods ...qm.QueryMod) rbacScopeQuery

RbacScopes retrieves all the records using an executor.

func RbacUserApplicationRoleExists

func RbacUserApplicationRoleExists(exec boil.Executor, iD uint) (bool, error)

RbacUserApplicationRoleExists checks if the RbacUserApplicationRole row exists.

func RbacUserApplicationRoles

func RbacUserApplicationRoles(mods ...qm.QueryMod) rbacUserApplicationRoleQuery

RbacUserApplicationRoles retrieves all the records using an executor.

func RefreshTokenExists

func RefreshTokenExists(exec boil.Executor, iD uint) (bool, error)

RefreshTokenExists checks if the RefreshToken row exists.

func RefreshTokens

func RefreshTokens(mods ...qm.QueryMod) refreshTokenQuery

RefreshTokens retrieves all the records using an executor.

func SaltExists

func SaltExists(exec boil.Executor, iD uint) (bool, error)

SaltExists checks if the Salt row exists.

func Salts

func Salts(mods ...qm.QueryMod) saltQuery

Salts retrieves all the records using an executor.

func UserExists

func UserExists(exec boil.Executor, iD uint) (bool, error)

UserExists checks if the User row exists.

func Users

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

Users retrieves all the records using an executor.

Types

type Application

type Application struct {
	ID                  uint      `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt           null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt           null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	DeletedAt           null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	Name                string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	Webhook             string    `boil:"webhook" json:"webhook" toml:"webhook" yaml:"webhook"`
	DefaultRole         null.Uint `boil:"default_role" json:"default_role,omitempty" toml:"default_role" yaml:"default_role,omitempty"`
	I18nApplicationName null.JSON `` /* 135-byte string literal not displayed */

	R *applicationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L applicationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Application is an object representing the database table.

func FindApplication

func FindApplication(exec boil.Executor, iD uint, selectCols ...string) (*Application, error)

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

func (*Application) Delete

func (o *Application) Delete(exec boil.Executor) (int64, error)

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

func (*Application) Insert

func (o *Application) Insert(exec boil.Executor, columns boil.Columns) error

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

func (*Application) Reload

func (o *Application) Reload(exec boil.Executor) error

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

func (*Application) Update

func (o *Application) Update(exec boil.Executor, columns boil.Columns) (int64, error)

Update uses an executor to update the Application. 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.

func (*Application) Upsert

func (o *Application) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type ApplicationHook

type ApplicationHook func(boil.Executor, *Application) error

ApplicationHook is the signature for custom Application hook methods

type ApplicationSlice

type ApplicationSlice []*Application

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

func (ApplicationSlice) DeleteAll

func (o ApplicationSlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (*ApplicationSlice) ReloadAll

func (o *ApplicationSlice) ReloadAll(exec boil.Executor) error

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

func (ApplicationSlice) UpdateAll

func (o ApplicationSlice) UpdateAll(exec boil.Executor, cols M) (int64, error)

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

type Binding

type Binding struct {
	ID            uint      `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt     null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt     null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	DeletedAt     null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	LoginType     string    `boil:"login_type" json:"login_type" toml:"login_type" yaml:"login_type"`
	IdentifyToken string    `boil:"identify_token" json:"identify_token" toml:"identify_token" yaml:"identify_token"`
	Mail          string    `boil:"mail" json:"mail" toml:"mail" yaml:"mail"`
	Verified      null.Bool `boil:"verified" json:"verified,omitempty" toml:"verified" yaml:"verified,omitempty"`
	UserID        uint      `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`

	R *bindingR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L bindingL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Binding is an object representing the database table.

func FindBinding

func FindBinding(exec boil.Executor, iD uint, selectCols ...string) (*Binding, error)

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

func (*Binding) Delete

func (o *Binding) Delete(exec boil.Executor) (int64, error)

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

func (*Binding) Insert

func (o *Binding) Insert(exec boil.Executor, columns boil.Columns) error

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

func (*Binding) Reload

func (o *Binding) Reload(exec boil.Executor) error

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

func (*Binding) Update

func (o *Binding) Update(exec boil.Executor, columns boil.Columns) (int64, error)

Update uses an executor to update the Binding. 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.

func (*Binding) Upsert

func (o *Binding) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type BindingHook

type BindingHook func(boil.Executor, *Binding) error

BindingHook is the signature for custom Binding hook methods

type BindingSlice

type BindingSlice []*Binding

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

func (BindingSlice) DeleteAll

func (o BindingSlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (*BindingSlice) ReloadAll

func (o *BindingSlice) ReloadAll(exec boil.Executor) error

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

func (BindingSlice) UpdateAll

func (o BindingSlice) UpdateAll(exec boil.Executor, cols M) (int64, error)

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

type DeviceApp

type DeviceApp struct {
	ID        uint      `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	DeviceID  string    `boil:"device_id" json:"device_id" toml:"device_id" yaml:"device_id"`
	AppID     uint      `boil:"app_id" json:"app_id" toml:"app_id" yaml:"app_id"`

	R *deviceAppR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L deviceAppL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

DeviceApp is an object representing the database table.

func FindDeviceApp

func FindDeviceApp(exec boil.Executor, iD uint, selectCols ...string) (*DeviceApp, error)

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

func (*DeviceApp) Delete

func (o *DeviceApp) Delete(exec boil.Executor) (int64, error)

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

func (*DeviceApp) Insert

func (o *DeviceApp) Insert(exec boil.Executor, columns boil.Columns) error

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

func (*DeviceApp) Reload

func (o *DeviceApp) Reload(exec boil.Executor) error

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

func (*DeviceApp) Update

func (o *DeviceApp) Update(exec boil.Executor, columns boil.Columns) (int64, error)

Update uses an executor to update the DeviceApp. 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.

func (*DeviceApp) Upsert

func (o *DeviceApp) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type DeviceAppHook

type DeviceAppHook func(boil.Executor, *DeviceApp) error

DeviceAppHook is the signature for custom DeviceApp hook methods

type DeviceAppSlice

type DeviceAppSlice []*DeviceApp

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

func (DeviceAppSlice) DeleteAll

func (o DeviceAppSlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (*DeviceAppSlice) ReloadAll

func (o *DeviceAppSlice) ReloadAll(exec boil.Executor) error

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

func (DeviceAppSlice) UpdateAll

func (o DeviceAppSlice) UpdateAll(exec boil.Executor, 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 OauthAuthorizationCode

type OauthAuthorizationCode struct {
	ID          uint      `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt   null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt   null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	DeletedAt   null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	UserID      uint      `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	ClientID    uint      `boil:"client_id" json:"client_id" toml:"client_id" yaml:"client_id"`
	AppID       uint      `boil:"app_id" json:"app_id" toml:"app_id" yaml:"app_id"`
	Code        string    `boil:"code" json:"code" toml:"code" yaml:"code"`
	RedirectURI string    `boil:"redirect_uri" json:"redirect_uri" toml:"redirect_uri" yaml:"redirect_uri"`
	ExpireAt    time.Time `boil:"expire_at" json:"expire_at" toml:"expire_at" yaml:"expire_at"`
	Scopes      string    `boil:"scopes" json:"scopes" toml:"scopes" yaml:"scopes"`

	R *oauthAuthorizationCodeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L oauthAuthorizationCodeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

OauthAuthorizationCode is an object representing the database table.

func FindOauthAuthorizationCode

func FindOauthAuthorizationCode(exec boil.Executor, iD uint, selectCols ...string) (*OauthAuthorizationCode, error)

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

func (*OauthAuthorizationCode) Delete

func (o *OauthAuthorizationCode) Delete(exec boil.Executor) (int64, error)

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

func (*OauthAuthorizationCode) Insert

func (o *OauthAuthorizationCode) Insert(exec boil.Executor, columns boil.Columns) error

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

func (*OauthAuthorizationCode) Reload

func (o *OauthAuthorizationCode) Reload(exec boil.Executor) error

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

func (*OauthAuthorizationCode) Update

func (o *OauthAuthorizationCode) Update(exec boil.Executor, columns boil.Columns) (int64, error)

Update uses an executor to update the OauthAuthorizationCode. 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.

func (*OauthAuthorizationCode) Upsert

func (o *OauthAuthorizationCode) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type OauthAuthorizationCodeHook

type OauthAuthorizationCodeHook func(boil.Executor, *OauthAuthorizationCode) error

OauthAuthorizationCodeHook is the signature for custom OauthAuthorizationCode hook methods

type OauthAuthorizationCodeSlice

type OauthAuthorizationCodeSlice []*OauthAuthorizationCode

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

func (OauthAuthorizationCodeSlice) DeleteAll

func (o OauthAuthorizationCodeSlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (*OauthAuthorizationCodeSlice) ReloadAll

func (o *OauthAuthorizationCodeSlice) ReloadAll(exec boil.Executor) error

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

func (OauthAuthorizationCodeSlice) UpdateAll

func (o OauthAuthorizationCodeSlice) UpdateAll(exec boil.Executor, cols M) (int64, error)

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

type OauthClient

type OauthClient struct {
	ID          uint      `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt   null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt   null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	DeletedAt   null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	Key         string    `boil:"key" json:"key" toml:"key" yaml:"key"`
	Secret      string    `boil:"secret" json:"secret" toml:"secret" yaml:"secret"`
	Status      string    `boil:"status" json:"status" toml:"status" yaml:"status"`
	UserID      uint      `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	RedirectURI string    `boil:"redirect_uri" json:"redirect_uri" toml:"redirect_uri" yaml:"redirect_uri"`

	R *oauthClientR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L oauthClientL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

OauthClient is an object representing the database table.

func FindOauthClient

func FindOauthClient(exec boil.Executor, iD uint, selectCols ...string) (*OauthClient, error)

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

func (*OauthClient) Delete

func (o *OauthClient) Delete(exec boil.Executor) (int64, error)

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

func (*OauthClient) Insert

func (o *OauthClient) Insert(exec boil.Executor, columns boil.Columns) error

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

func (*OauthClient) Reload

func (o *OauthClient) Reload(exec boil.Executor) error

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

func (*OauthClient) Update

func (o *OauthClient) Update(exec boil.Executor, columns boil.Columns) (int64, error)

Update uses an executor to update the OauthClient. 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.

func (*OauthClient) Upsert

func (o *OauthClient) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type OauthClientHook

type OauthClientHook func(boil.Executor, *OauthClient) error

OauthClientHook is the signature for custom OauthClient hook methods

type OauthClientSlice

type OauthClientSlice []*OauthClient

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

func (OauthClientSlice) DeleteAll

func (o OauthClientSlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (*OauthClientSlice) ReloadAll

func (o *OauthClientSlice) ReloadAll(exec boil.Executor) error

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

func (OauthClientSlice) UpdateAll

func (o OauthClientSlice) UpdateAll(exec boil.Executor, cols M) (int64, error)

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

type RbacRole

type RbacRole struct {
	ID           uint      `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt    null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt    null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	DeletedAt    null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	Name         string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	AppID        uint      `boil:"app_id" json:"app_id" toml:"app_id" yaml:"app_id"`
	DefaultScope null.Uint `boil:"default_scope" json:"default_scope,omitempty" toml:"default_scope" yaml:"default_scope,omitempty"`

	R *rbacRoleR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L rbacRoleL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RbacRole is an object representing the database table.

func FindRbacRole

func FindRbacRole(exec boil.Executor, iD uint, selectCols ...string) (*RbacRole, error)

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

func (*RbacRole) Delete

func (o *RbacRole) Delete(exec boil.Executor) (int64, error)

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

func (*RbacRole) Insert

func (o *RbacRole) Insert(exec boil.Executor, columns boil.Columns) error

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

func (*RbacRole) Reload

func (o *RbacRole) Reload(exec boil.Executor) error

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

func (*RbacRole) Update

func (o *RbacRole) Update(exec boil.Executor, columns boil.Columns) (int64, error)

Update uses an executor to update the RbacRole. 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.

func (*RbacRole) Upsert

func (o *RbacRole) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type RbacRoleHook

type RbacRoleHook func(boil.Executor, *RbacRole) error

RbacRoleHook is the signature for custom RbacRole hook methods

type RbacRoleScope

type RbacRoleScope struct {
	ID        uint      `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	RoleID    uint      `boil:"role_id" json:"role_id" toml:"role_id" yaml:"role_id"`
	ScopeID   uint      `boil:"scope_id" json:"scope_id" toml:"scope_id" yaml:"scope_id"`

	R *rbacRoleScopeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L rbacRoleScopeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RbacRoleScope is an object representing the database table.

func FindRbacRoleScope

func FindRbacRoleScope(exec boil.Executor, iD uint, selectCols ...string) (*RbacRoleScope, error)

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

func (*RbacRoleScope) Delete

func (o *RbacRoleScope) Delete(exec boil.Executor) (int64, error)

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

func (*RbacRoleScope) Insert

func (o *RbacRoleScope) Insert(exec boil.Executor, columns boil.Columns) error

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

func (*RbacRoleScope) Reload

func (o *RbacRoleScope) Reload(exec boil.Executor) error

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

func (*RbacRoleScope) Update

func (o *RbacRoleScope) Update(exec boil.Executor, columns boil.Columns) (int64, error)

Update uses an executor to update the RbacRoleScope. 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.

func (*RbacRoleScope) Upsert

func (o *RbacRoleScope) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type RbacRoleScopeHook

type RbacRoleScopeHook func(boil.Executor, *RbacRoleScope) error

RbacRoleScopeHook is the signature for custom RbacRoleScope hook methods

type RbacRoleScopeSlice

type RbacRoleScopeSlice []*RbacRoleScope

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

func (RbacRoleScopeSlice) DeleteAll

func (o RbacRoleScopeSlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (*RbacRoleScopeSlice) ReloadAll

func (o *RbacRoleScopeSlice) ReloadAll(exec boil.Executor) error

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

func (RbacRoleScopeSlice) UpdateAll

func (o RbacRoleScopeSlice) UpdateAll(exec boil.Executor, cols M) (int64, error)

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

type RbacRoleSlice

type RbacRoleSlice []*RbacRole

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

func (RbacRoleSlice) DeleteAll

func (o RbacRoleSlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (*RbacRoleSlice) ReloadAll

func (o *RbacRoleSlice) ReloadAll(exec boil.Executor) error

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

func (RbacRoleSlice) UpdateAll

func (o RbacRoleSlice) UpdateAll(exec boil.Executor, cols M) (int64, error)

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

type RbacScope

type RbacScope struct {
	ID        uint      `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	Name      string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	AppID     uint      `boil:"app_id" json:"app_id" toml:"app_id" yaml:"app_id"`

	R *rbacScopeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L rbacScopeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RbacScope is an object representing the database table.

func FindRbacScope

func FindRbacScope(exec boil.Executor, iD uint, selectCols ...string) (*RbacScope, error)

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

func (*RbacScope) Delete

func (o *RbacScope) Delete(exec boil.Executor) (int64, error)

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

func (*RbacScope) Insert

func (o *RbacScope) Insert(exec boil.Executor, columns boil.Columns) error

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

func (*RbacScope) Reload

func (o *RbacScope) Reload(exec boil.Executor) error

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

func (*RbacScope) Update

func (o *RbacScope) Update(exec boil.Executor, columns boil.Columns) (int64, error)

Update uses an executor to update the RbacScope. 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.

func (*RbacScope) Upsert

func (o *RbacScope) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type RbacScopeHook

type RbacScopeHook func(boil.Executor, *RbacScope) error

RbacScopeHook is the signature for custom RbacScope hook methods

type RbacScopeSlice

type RbacScopeSlice []*RbacScope

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

func (RbacScopeSlice) DeleteAll

func (o RbacScopeSlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (*RbacScopeSlice) ReloadAll

func (o *RbacScopeSlice) ReloadAll(exec boil.Executor) error

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

func (RbacScopeSlice) UpdateAll

func (o RbacScopeSlice) UpdateAll(exec boil.Executor, cols M) (int64, error)

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

type RbacUserApplicationRole

type RbacUserApplicationRole struct {
	ID        uint      `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	UserID    uint      `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	AppID     uint      `boil:"app_id" json:"app_id" toml:"app_id" yaml:"app_id"`
	RoleID    uint      `boil:"role_id" json:"role_id" toml:"role_id" yaml:"role_id"`

	R *rbacUserApplicationRoleR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L rbacUserApplicationRoleL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RbacUserApplicationRole is an object representing the database table.

func FindRbacUserApplicationRole

func FindRbacUserApplicationRole(exec boil.Executor, iD uint, selectCols ...string) (*RbacUserApplicationRole, error)

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

func (*RbacUserApplicationRole) Delete

func (o *RbacUserApplicationRole) Delete(exec boil.Executor) (int64, error)

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

func (*RbacUserApplicationRole) Insert

func (o *RbacUserApplicationRole) Insert(exec boil.Executor, columns boil.Columns) error

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

func (*RbacUserApplicationRole) Reload

func (o *RbacUserApplicationRole) Reload(exec boil.Executor) error

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

func (*RbacUserApplicationRole) Update

func (o *RbacUserApplicationRole) Update(exec boil.Executor, columns boil.Columns) (int64, error)

Update uses an executor to update the RbacUserApplicationRole. 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.

func (*RbacUserApplicationRole) Upsert

func (o *RbacUserApplicationRole) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type RbacUserApplicationRoleHook

type RbacUserApplicationRoleHook func(boil.Executor, *RbacUserApplicationRole) error

RbacUserApplicationRoleHook is the signature for custom RbacUserApplicationRole hook methods

type RbacUserApplicationRoleSlice

type RbacUserApplicationRoleSlice []*RbacUserApplicationRole

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

func (RbacUserApplicationRoleSlice) DeleteAll

func (o RbacUserApplicationRoleSlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (*RbacUserApplicationRoleSlice) ReloadAll

func (o *RbacUserApplicationRoleSlice) ReloadAll(exec boil.Executor) error

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

func (RbacUserApplicationRoleSlice) UpdateAll

func (o RbacUserApplicationRoleSlice) UpdateAll(exec boil.Executor, cols M) (int64, error)

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

type RefreshToken

type RefreshToken struct {
	ID           uint        `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt    null.Time   `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt    null.Time   `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	DeletedAt    null.Time   `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	UserID       uint        `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	RefreshToken string      `boil:"refresh_token" json:"refresh_token" toml:"refresh_token" yaml:"refresh_token"`
	ExpireAt     time.Time   `boil:"expire_at" json:"expire_at" toml:"expire_at" yaml:"expire_at"`
	DeviceAppID  uint        `boil:"device_app_id" json:"device_app_id" toml:"device_app_id" yaml:"device_app_id"`
	Scopes       null.String `boil:"scopes" json:"scopes,omitempty" toml:"scopes" yaml:"scopes,omitempty"`

	R *refreshTokenR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L refreshTokenL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RefreshToken is an object representing the database table.

func FindRefreshToken

func FindRefreshToken(exec boil.Executor, iD uint, selectCols ...string) (*RefreshToken, error)

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

func (*RefreshToken) Delete

func (o *RefreshToken) Delete(exec boil.Executor) (int64, error)

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

func (*RefreshToken) Insert

func (o *RefreshToken) Insert(exec boil.Executor, columns boil.Columns) error

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

func (*RefreshToken) Reload

func (o *RefreshToken) Reload(exec boil.Executor) error

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

func (*RefreshToken) Update

func (o *RefreshToken) Update(exec boil.Executor, columns boil.Columns) (int64, error)

Update uses an executor to update the RefreshToken. 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.

func (*RefreshToken) Upsert

func (o *RefreshToken) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type RefreshTokenHook

type RefreshTokenHook func(boil.Executor, *RefreshToken) error

RefreshTokenHook is the signature for custom RefreshToken hook methods

type RefreshTokenSlice

type RefreshTokenSlice []*RefreshToken

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

func (RefreshTokenSlice) DeleteAll

func (o RefreshTokenSlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (*RefreshTokenSlice) ReloadAll

func (o *RefreshTokenSlice) ReloadAll(exec boil.Executor) error

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

func (RefreshTokenSlice) UpdateAll

func (o RefreshTokenSlice) UpdateAll(exec boil.Executor, cols M) (int64, error)

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

type Salt

type Salt struct {
	ID        uint      `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	UserID    uint      `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	Salt      string    `boil:"salt" json:"salt" toml:"salt" yaml:"salt"`

	R *saltR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L saltL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Salt is an object representing the database table.

func FindSalt

func FindSalt(exec boil.Executor, iD uint, selectCols ...string) (*Salt, error)

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

func (*Salt) Delete

func (o *Salt) Delete(exec boil.Executor) (int64, error)

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

func (*Salt) Insert

func (o *Salt) Insert(exec boil.Executor, columns boil.Columns) error

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

func (*Salt) Reload

func (o *Salt) Reload(exec boil.Executor) error

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

func (*Salt) Update

func (o *Salt) Update(exec boil.Executor, columns boil.Columns) (int64, error)

Update uses an executor to update the Salt. 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.

func (*Salt) Upsert

func (o *Salt) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type SaltHook

type SaltHook func(boil.Executor, *Salt) error

SaltHook is the signature for custom Salt hook methods

type SaltSlice

type SaltSlice []*Salt

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

func (SaltSlice) DeleteAll

func (o SaltSlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (*SaltSlice) ReloadAll

func (o *SaltSlice) ReloadAll(exec boil.Executor) error

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

func (SaltSlice) UpdateAll

func (o SaltSlice) UpdateAll(exec boil.Executor, cols M) (int64, error)

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

type User

type User struct {
	ID        uint        `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt null.Time   `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt null.Time   `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	DeletedAt null.Time   `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	Name      string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Password  null.String `boil:"password" json:"password,omitempty" toml:"password" yaml:"password,omitempty"`
	Verified  null.Bool   `boil:"verified" json:"verified,omitempty" toml:"verified" yaml:"verified,omitempty"`
	Avatar    null.String `boil:"avatar" json:"avatar,omitempty" toml:"avatar" yaml:"avatar,omitempty"`

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

User is an object representing the database table.

func FindUser

func FindUser(exec boil.Executor, iD uint, 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(exec boil.Executor) (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(exec boil.Executor, 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(exec boil.Executor) error

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

func (*User) Update

func (o *User) Update(exec boil.Executor, 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.

func (*User) Upsert

func (o *User) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type UserHook

type UserHook func(boil.Executor, *User) error

UserHook is the signature for custom User hook methods

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(exec boil.Executor) (int64, error)

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

func (*UserSlice) ReloadAll

func (o *UserSlice) ReloadAll(exec boil.Executor) 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(exec boil.Executor, 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