Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Signin) predicate.Signin
- func HasUser() predicate.Signin
- func HasUserWith(preds ...predicate.User) predicate.Signin
- func ID(id int) predicate.Signin
- func IDEQ(id int) predicate.Signin
- func IDGT(id int) predicate.Signin
- func IDGTE(id int) predicate.Signin
- func IDIn(ids ...int) predicate.Signin
- func IDLT(id int) predicate.Signin
- func IDLTE(id int) predicate.Signin
- func IDNEQ(id int) predicate.Signin
- func IDNotIn(ids ...int) predicate.Signin
- func Not(p predicate.Signin) predicate.Signin
- func Or(predicates ...predicate.Signin) predicate.Signin
- func Timestamp(v time.Time) predicate.Signin
- func TimestampEQ(v time.Time) predicate.Signin
- func TimestampGT(v time.Time) predicate.Signin
- func TimestampGTE(v time.Time) predicate.Signin
- func TimestampIn(vs ...time.Time) predicate.Signin
- func TimestampLT(v time.Time) predicate.Signin
- func TimestampLTE(v time.Time) predicate.Signin
- func TimestampNEQ(v time.Time) predicate.Signin
- func TimestampNotIn(vs ...time.Time) predicate.Signin
- func TypeEQ(v Type) predicate.Signin
- func TypeIn(vs ...Type) predicate.Signin
- func TypeNEQ(v Type) predicate.Signin
- func TypeNotIn(vs ...Type) predicate.Signin
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type OrderOption
- type Type
Constants ¶
const ( // Label holds the string label denoting the signin type in the database. Label = "signin" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTimestamp holds the string denoting the timestamp field in the database. FieldTimestamp = "timestamp" // FieldType holds the string denoting the type field in the database. FieldType = "type" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the signin in the database. Table = "signins" // UserTable is the table that holds the user relation/edge. UserTable = "signins" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_signins" )
Variables ¶
var Columns = []string{ FieldID, FieldTimestamp, FieldType, }
Columns holds all SQL columns for signin fields.
var ( // DefaultTimestamp holds the default value on creation for the "timestamp" field. DefaultTimestamp func() time.Time )
var ForeignKeys = []string{
"user_signins",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "signins" table and are not defined as standalone fields in the schema.
Functions ¶
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func Timestamp ¶
Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.
func TimestampEQ ¶
TimestampEQ applies the EQ predicate on the "timestamp" field.
func TimestampGT ¶
TimestampGT applies the GT predicate on the "timestamp" field.
func TimestampGTE ¶
TimestampGTE applies the GTE predicate on the "timestamp" field.
func TimestampIn ¶
TimestampIn applies the In predicate on the "timestamp" field.
func TimestampLT ¶
TimestampLT applies the LT predicate on the "timestamp" field.
func TimestampLTE ¶
TimestampLTE applies the LTE predicate on the "timestamp" field.
func TimestampNEQ ¶
TimestampNEQ applies the NEQ predicate on the "timestamp" field.
func TimestampNotIn ¶
TimestampNotIn applies the NotIn predicate on the "timestamp" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
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 Signin queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByTimestamp ¶
func ByTimestamp(opts ...sql.OrderTermOption) OrderOption
ByTimestamp orders the results by the timestamp field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
type Type ¶
type Type string
Type defines the type for the "type" enum field.
const ( TypeGeneralMeeting Type = "General Meeting" TypeRedTeam Type = "Red Team" TypeRedTeamRecruiting Type = "Red Team Recruiting" TypeReversing Type = "Reversing" TypeRVAPT Type = "RVAPT" TypeContagion Type = "Contagion" TypePhysical Type = "Physical" TypeWireless Type = "Wireless" TypeIR Type = "IR" TypeWiCyS Type = "WiCyS" TypeOps Type = "Ops" TypeOpsIG Type = "Ops IG" TypeVulnerabilityResearch Type = "Vulnerability Research" TypeMentorship Type = "Mentorship" TypeOther Type = "Other" )
Type values.