Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.APIToken) predicate.APIToken
- func CreatedAt(v time.Time) predicate.APIToken
- func CreatedAtEQ(v time.Time) predicate.APIToken
- func CreatedAtGT(v time.Time) predicate.APIToken
- func CreatedAtGTE(v time.Time) predicate.APIToken
- func CreatedAtIn(vs ...time.Time) predicate.APIToken
- func CreatedAtIsNil() predicate.APIToken
- func CreatedAtLT(v time.Time) predicate.APIToken
- func CreatedAtLTE(v time.Time) predicate.APIToken
- func CreatedAtNEQ(v time.Time) predicate.APIToken
- func CreatedAtNotIn(vs ...time.Time) predicate.APIToken
- func CreatedAtNotNil() predicate.APIToken
- func CreatedBy(v string) predicate.APIToken
- func CreatedByContains(v string) predicate.APIToken
- func CreatedByContainsFold(v string) predicate.APIToken
- func CreatedByEQ(v string) predicate.APIToken
- func CreatedByEqualFold(v string) predicate.APIToken
- func CreatedByGT(v string) predicate.APIToken
- func CreatedByGTE(v string) predicate.APIToken
- func CreatedByHasPrefix(v string) predicate.APIToken
- func CreatedByHasSuffix(v string) predicate.APIToken
- func CreatedByIn(vs ...string) predicate.APIToken
- func CreatedByIsNil() predicate.APIToken
- func CreatedByLT(v string) predicate.APIToken
- func CreatedByLTE(v string) predicate.APIToken
- func CreatedByNEQ(v string) predicate.APIToken
- func CreatedByNotIn(vs ...string) predicate.APIToken
- func CreatedByNotNil() predicate.APIToken
- func DeletedAt(v time.Time) predicate.APIToken
- func DeletedAtEQ(v time.Time) predicate.APIToken
- func DeletedAtGT(v time.Time) predicate.APIToken
- func DeletedAtGTE(v time.Time) predicate.APIToken
- func DeletedAtIn(vs ...time.Time) predicate.APIToken
- func DeletedAtIsNil() predicate.APIToken
- func DeletedAtLT(v time.Time) predicate.APIToken
- func DeletedAtLTE(v time.Time) predicate.APIToken
- func DeletedAtNEQ(v time.Time) predicate.APIToken
- func DeletedAtNotIn(vs ...time.Time) predicate.APIToken
- func DeletedAtNotNil() predicate.APIToken
- func DeletedBy(v string) predicate.APIToken
- func DeletedByContains(v string) predicate.APIToken
- func DeletedByContainsFold(v string) predicate.APIToken
- func DeletedByEQ(v string) predicate.APIToken
- func DeletedByEqualFold(v string) predicate.APIToken
- func DeletedByGT(v string) predicate.APIToken
- func DeletedByGTE(v string) predicate.APIToken
- func DeletedByHasPrefix(v string) predicate.APIToken
- func DeletedByHasSuffix(v string) predicate.APIToken
- func DeletedByIn(vs ...string) predicate.APIToken
- func DeletedByIsNil() predicate.APIToken
- func DeletedByLT(v string) predicate.APIToken
- func DeletedByLTE(v string) predicate.APIToken
- func DeletedByNEQ(v string) predicate.APIToken
- func DeletedByNotIn(vs ...string) predicate.APIToken
- func DeletedByNotNil() predicate.APIToken
- func Description(v string) predicate.APIToken
- func DescriptionContains(v string) predicate.APIToken
- func DescriptionContainsFold(v string) predicate.APIToken
- func DescriptionEQ(v string) predicate.APIToken
- func DescriptionEqualFold(v string) predicate.APIToken
- func DescriptionGT(v string) predicate.APIToken
- func DescriptionGTE(v string) predicate.APIToken
- func DescriptionHasPrefix(v string) predicate.APIToken
- func DescriptionHasSuffix(v string) predicate.APIToken
- func DescriptionIn(vs ...string) predicate.APIToken
- func DescriptionIsNil() predicate.APIToken
- func DescriptionLT(v string) predicate.APIToken
- func DescriptionLTE(v string) predicate.APIToken
- func DescriptionNEQ(v string) predicate.APIToken
- func DescriptionNotIn(vs ...string) predicate.APIToken
- func DescriptionNotNil() predicate.APIToken
- func ExpiresAt(v time.Time) predicate.APIToken
- func ExpiresAtEQ(v time.Time) predicate.APIToken
- func ExpiresAtGT(v time.Time) predicate.APIToken
- func ExpiresAtGTE(v time.Time) predicate.APIToken
- func ExpiresAtIn(vs ...time.Time) predicate.APIToken
- func ExpiresAtIsNil() predicate.APIToken
- func ExpiresAtLT(v time.Time) predicate.APIToken
- func ExpiresAtLTE(v time.Time) predicate.APIToken
- func ExpiresAtNEQ(v time.Time) predicate.APIToken
- func ExpiresAtNotIn(vs ...time.Time) predicate.APIToken
- func ExpiresAtNotNil() predicate.APIToken
- func HasOwner() predicate.APIToken
- func HasOwnerWith(preds ...predicate.Organization) predicate.APIToken
- func ID(id string) predicate.APIToken
- func IDContainsFold(id string) predicate.APIToken
- func IDEQ(id string) predicate.APIToken
- func IDEqualFold(id string) predicate.APIToken
- func IDGT(id string) predicate.APIToken
- func IDGTE(id string) predicate.APIToken
- func IDIn(ids ...string) predicate.APIToken
- func IDLT(id string) predicate.APIToken
- func IDLTE(id string) predicate.APIToken
- func IDNEQ(id string) predicate.APIToken
- func IDNotIn(ids ...string) predicate.APIToken
- func LastUsedAt(v time.Time) predicate.APIToken
- func LastUsedAtEQ(v time.Time) predicate.APIToken
- func LastUsedAtGT(v time.Time) predicate.APIToken
- func LastUsedAtGTE(v time.Time) predicate.APIToken
- func LastUsedAtIn(vs ...time.Time) predicate.APIToken
- func LastUsedAtIsNil() predicate.APIToken
- func LastUsedAtLT(v time.Time) predicate.APIToken
- func LastUsedAtLTE(v time.Time) predicate.APIToken
- func LastUsedAtNEQ(v time.Time) predicate.APIToken
- func LastUsedAtNotIn(vs ...time.Time) predicate.APIToken
- func LastUsedAtNotNil() predicate.APIToken
- func MappingID(v string) predicate.APIToken
- func MappingIDContains(v string) predicate.APIToken
- func MappingIDContainsFold(v string) predicate.APIToken
- func MappingIDEQ(v string) predicate.APIToken
- func MappingIDEqualFold(v string) predicate.APIToken
- func MappingIDGT(v string) predicate.APIToken
- func MappingIDGTE(v string) predicate.APIToken
- func MappingIDHasPrefix(v string) predicate.APIToken
- func MappingIDHasSuffix(v string) predicate.APIToken
- func MappingIDIn(vs ...string) predicate.APIToken
- func MappingIDLT(v string) predicate.APIToken
- func MappingIDLTE(v string) predicate.APIToken
- func MappingIDNEQ(v string) predicate.APIToken
- func MappingIDNotIn(vs ...string) predicate.APIToken
- func Name(v string) predicate.APIToken
- func NameContains(v string) predicate.APIToken
- func NameContainsFold(v string) predicate.APIToken
- func NameEQ(v string) predicate.APIToken
- func NameEqualFold(v string) predicate.APIToken
- func NameGT(v string) predicate.APIToken
- func NameGTE(v string) predicate.APIToken
- func NameHasPrefix(v string) predicate.APIToken
- func NameHasSuffix(v string) predicate.APIToken
- func NameIn(vs ...string) predicate.APIToken
- func NameLT(v string) predicate.APIToken
- func NameLTE(v string) predicate.APIToken
- func NameNEQ(v string) predicate.APIToken
- func NameNotIn(vs ...string) predicate.APIToken
- func Not(p predicate.APIToken) predicate.APIToken
- func Or(predicates ...predicate.APIToken) predicate.APIToken
- func OwnerID(v string) predicate.APIToken
- func OwnerIDContains(v string) predicate.APIToken
- func OwnerIDContainsFold(v string) predicate.APIToken
- func OwnerIDEQ(v string) predicate.APIToken
- func OwnerIDEqualFold(v string) predicate.APIToken
- func OwnerIDGT(v string) predicate.APIToken
- func OwnerIDGTE(v string) predicate.APIToken
- func OwnerIDHasPrefix(v string) predicate.APIToken
- func OwnerIDHasSuffix(v string) predicate.APIToken
- func OwnerIDIn(vs ...string) predicate.APIToken
- func OwnerIDIsNil() predicate.APIToken
- func OwnerIDLT(v string) predicate.APIToken
- func OwnerIDLTE(v string) predicate.APIToken
- func OwnerIDNEQ(v string) predicate.APIToken
- func OwnerIDNotIn(vs ...string) predicate.APIToken
- func OwnerIDNotNil() predicate.APIToken
- func ScopesIsNil() predicate.APIToken
- func ScopesNotNil() predicate.APIToken
- func TagsIsNil() predicate.APIToken
- func TagsNotNil() predicate.APIToken
- func Token(v string) predicate.APIToken
- func TokenContains(v string) predicate.APIToken
- func TokenContainsFold(v string) predicate.APIToken
- func TokenEQ(v string) predicate.APIToken
- func TokenEqualFold(v string) predicate.APIToken
- func TokenGT(v string) predicate.APIToken
- func TokenGTE(v string) predicate.APIToken
- func TokenHasPrefix(v string) predicate.APIToken
- func TokenHasSuffix(v string) predicate.APIToken
- func TokenIn(vs ...string) predicate.APIToken
- func TokenLT(v string) predicate.APIToken
- func TokenLTE(v string) predicate.APIToken
- func TokenNEQ(v string) predicate.APIToken
- func TokenNotIn(vs ...string) predicate.APIToken
- func UpdatedAt(v time.Time) predicate.APIToken
- func UpdatedAtEQ(v time.Time) predicate.APIToken
- func UpdatedAtGT(v time.Time) predicate.APIToken
- func UpdatedAtGTE(v time.Time) predicate.APIToken
- func UpdatedAtIn(vs ...time.Time) predicate.APIToken
- func UpdatedAtIsNil() predicate.APIToken
- func UpdatedAtLT(v time.Time) predicate.APIToken
- func UpdatedAtLTE(v time.Time) predicate.APIToken
- func UpdatedAtNEQ(v time.Time) predicate.APIToken
- func UpdatedAtNotIn(vs ...time.Time) predicate.APIToken
- func UpdatedAtNotNil() predicate.APIToken
- func UpdatedBy(v string) predicate.APIToken
- func UpdatedByContains(v string) predicate.APIToken
- func UpdatedByContainsFold(v string) predicate.APIToken
- func UpdatedByEQ(v string) predicate.APIToken
- func UpdatedByEqualFold(v string) predicate.APIToken
- func UpdatedByGT(v string) predicate.APIToken
- func UpdatedByGTE(v string) predicate.APIToken
- func UpdatedByHasPrefix(v string) predicate.APIToken
- func UpdatedByHasSuffix(v string) predicate.APIToken
- func UpdatedByIn(vs ...string) predicate.APIToken
- func UpdatedByIsNil() predicate.APIToken
- func UpdatedByLT(v string) predicate.APIToken
- func UpdatedByLTE(v string) predicate.APIToken
- func UpdatedByNEQ(v string) predicate.APIToken
- func UpdatedByNotIn(vs ...string) predicate.APIToken
- func UpdatedByNotNil() predicate.APIToken
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastUsedAt(opts ...sql.OrderTermOption) OrderOption
- func ByMappingID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByToken(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the apitoken type in the database. Label = "api_token" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldDeletedBy holds the string denoting the deleted_by field in the database. FieldDeletedBy = "deleted_by" // FieldMappingID holds the string denoting the mapping_id field in the database. FieldMappingID = "mapping_id" // FieldTags holds the string denoting the tags field in the database. FieldTags = "tags" // FieldOwnerID holds the string denoting the owner_id field in the database. FieldOwnerID = "owner_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldToken holds the string denoting the token field in the database. FieldToken = "token" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldScopes holds the string denoting the scopes field in the database. FieldScopes = "scopes" // FieldLastUsedAt holds the string denoting the last_used_at field in the database. FieldLastUsedAt = "last_used_at" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the apitoken in the database. Table = "api_tokens" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "api_tokens" // OwnerInverseTable is the table name for the Organization entity. // It exists in this package in order to avoid circular dependency with the "organization" package. OwnerInverseTable = "organizations" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "owner_id" )
Variables ¶
var ( Hooks [6]ent.Hook Interceptors [3]ent.Interceptor Policy ent.Policy // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // 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 // DefaultMappingID holds the default value on creation for the "mapping_id" field. DefaultMappingID func() string // DefaultTags holds the default value on creation for the "tags" field. DefaultTags []string // OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save. OwnerIDValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultToken holds the default value on creation for the "token" field. DefaultToken func() string // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/datumforge/datum/internal/ent/generated/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldDeletedAt, FieldDeletedBy, FieldMappingID, FieldTags, FieldOwnerID, FieldName, FieldToken, FieldExpiresAt, FieldDescription, FieldScopes, FieldLastUsedAt, }
Columns holds all SQL columns for apitoken fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶
DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func ExpiresAt ¶
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtIsNil ¶
ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.
func ExpiresAtLT ¶
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func ExpiresAtNotNil ¶
ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Organization) predicate.APIToken
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func LastUsedAt ¶
LastUsedAt applies equality check predicate on the "last_used_at" field. It's identical to LastUsedAtEQ.
func LastUsedAtEQ ¶
LastUsedAtEQ applies the EQ predicate on the "last_used_at" field.
func LastUsedAtGT ¶
LastUsedAtGT applies the GT predicate on the "last_used_at" field.
func LastUsedAtGTE ¶
LastUsedAtGTE applies the GTE predicate on the "last_used_at" field.
func LastUsedAtIn ¶
LastUsedAtIn applies the In predicate on the "last_used_at" field.
func LastUsedAtIsNil ¶
LastUsedAtIsNil applies the IsNil predicate on the "last_used_at" field.
func LastUsedAtLT ¶
LastUsedAtLT applies the LT predicate on the "last_used_at" field.
func LastUsedAtLTE ¶
LastUsedAtLTE applies the LTE predicate on the "last_used_at" field.
func LastUsedAtNEQ ¶
LastUsedAtNEQ applies the NEQ predicate on the "last_used_at" field.
func LastUsedAtNotIn ¶
LastUsedAtNotIn applies the NotIn predicate on the "last_used_at" field.
func LastUsedAtNotNil ¶
LastUsedAtNotNil applies the NotNil predicate on the "last_used_at" field.
func MappingID ¶
MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.
func MappingIDContains ¶
MappingIDContains applies the Contains predicate on the "mapping_id" field.
func MappingIDContainsFold ¶
MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.
func MappingIDEQ ¶
MappingIDEQ applies the EQ predicate on the "mapping_id" field.
func MappingIDEqualFold ¶
MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.
func MappingIDGT ¶
MappingIDGT applies the GT predicate on the "mapping_id" field.
func MappingIDGTE ¶
MappingIDGTE applies the GTE predicate on the "mapping_id" field.
func MappingIDHasPrefix ¶
MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.
func MappingIDHasSuffix ¶
MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.
func MappingIDIn ¶
MappingIDIn applies the In predicate on the "mapping_id" field.
func MappingIDLT ¶
MappingIDLT applies the LT predicate on the "mapping_id" field.
func MappingIDLTE ¶
MappingIDLTE applies the LTE predicate on the "mapping_id" field.
func MappingIDNEQ ¶
MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.
func MappingIDNotIn ¶
MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func OwnerID ¶
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDContains ¶
OwnerIDContains applies the Contains predicate on the "owner_id" field.
func OwnerIDContainsFold ¶
OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.
func OwnerIDEqualFold ¶
OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.
func OwnerIDGTE ¶
OwnerIDGTE applies the GTE predicate on the "owner_id" field.
func OwnerIDHasPrefix ¶
OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.
func OwnerIDHasSuffix ¶
OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.
func OwnerIDIsNil ¶ added in v0.5.2
OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.
func OwnerIDLTE ¶
OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDNEQ ¶
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func OwnerIDNotNil ¶ added in v0.5.2
OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.
func ScopesIsNil ¶
ScopesIsNil applies the IsNil predicate on the "scopes" field.
func ScopesNotNil ¶
ScopesNotNil applies the NotNil predicate on the "scopes" field.
func TagsNotNil ¶ added in v0.5.2
TagsNotNil applies the NotNil predicate on the "tags" field.
func Token ¶
Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
func TokenContains ¶
TokenContains applies the Contains predicate on the "token" field.
func TokenContainsFold ¶
TokenContainsFold applies the ContainsFold predicate on the "token" field.
func TokenEqualFold ¶
TokenEqualFold applies the EqualFold predicate on the "token" field.
func TokenHasPrefix ¶
TokenHasPrefix applies the HasPrefix predicate on the "token" field.
func TokenHasSuffix ¶
TokenHasSuffix applies the HasSuffix predicate on the "token" field.
func TokenNotIn ¶
TokenNotIn applies the NotIn predicate on the "token" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the APIToken queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedBy ¶
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
ByCreatedBy orders the results by the created_by field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDeletedBy ¶
func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
ByDeletedBy orders the results by the deleted_by field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByExpiresAt ¶
func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByExpiresAt orders the results by the expires_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastUsedAt ¶
func ByLastUsedAt(opts ...sql.OrderTermOption) OrderOption
ByLastUsedAt orders the results by the last_used_at field.
func ByMappingID ¶
func ByMappingID(opts ...sql.OrderTermOption) OrderOption
ByMappingID orders the results by the mapping_id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByOwnerID ¶
func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
ByOwnerID orders the results by the owner_id field.
func ByToken ¶
func ByToken(opts ...sql.OrderTermOption) OrderOption
ByToken orders the results by the token field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedBy ¶
func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
ByUpdatedBy orders the results by the updated_by field.