Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Attachment) predicate.Attachment
- func ApplicationID(v uuid.UUID) predicate.Attachment
- func ApplicationIDEQ(v uuid.UUID) predicate.Attachment
- func ApplicationIDIn(vs ...uuid.UUID) predicate.Attachment
- func ApplicationIDNEQ(v uuid.UUID) predicate.Attachment
- func ApplicationIDNotIn(vs ...uuid.UUID) predicate.Attachment
- func AttachmentTypeEQ(v AttachmentType) predicate.Attachment
- func AttachmentTypeIn(vs ...AttachmentType) predicate.Attachment
- func AttachmentTypeNEQ(v AttachmentType) predicate.Attachment
- func AttachmentTypeNotIn(vs ...AttachmentType) predicate.Attachment
- func AttachmentTypeValidator(at AttachmentType) error
- func CreatedDtime(v time.Time) predicate.Attachment
- func CreatedDtimeEQ(v time.Time) predicate.Attachment
- func CreatedDtimeGT(v time.Time) predicate.Attachment
- func CreatedDtimeGTE(v time.Time) predicate.Attachment
- func CreatedDtimeIn(vs ...time.Time) predicate.Attachment
- func CreatedDtimeLT(v time.Time) predicate.Attachment
- func CreatedDtimeLTE(v time.Time) predicate.Attachment
- func CreatedDtimeNEQ(v time.Time) predicate.Attachment
- func CreatedDtimeNotIn(vs ...time.Time) predicate.Attachment
- func HasApplications() predicate.Attachment
- func HasApplicationsWith(preds ...predicate.Application) predicate.Attachment
- func HasTickets() predicate.Attachment
- func HasTicketsWith(preds ...predicate.Ticket) predicate.Attachment
- func ID(id int) predicate.Attachment
- func IDEQ(id int) predicate.Attachment
- func IDGT(id int) predicate.Attachment
- func IDGTE(id int) predicate.Attachment
- func IDIn(ids ...int) predicate.Attachment
- func IDLT(id int) predicate.Attachment
- func IDLTE(id int) predicate.Attachment
- func IDNEQ(id int) predicate.Attachment
- func IDNotIn(ids ...int) predicate.Attachment
- func Not(p predicate.Attachment) predicate.Attachment
- func ObsHash(v string) predicate.Attachment
- func ObsHashContains(v string) predicate.Attachment
- func ObsHashContainsFold(v string) predicate.Attachment
- func ObsHashEQ(v string) predicate.Attachment
- func ObsHashEqualFold(v string) predicate.Attachment
- func ObsHashGT(v string) predicate.Attachment
- func ObsHashGTE(v string) predicate.Attachment
- func ObsHashHasPrefix(v string) predicate.Attachment
- func ObsHashHasSuffix(v string) predicate.Attachment
- func ObsHashIn(vs ...string) predicate.Attachment
- func ObsHashLT(v string) predicate.Attachment
- func ObsHashLTE(v string) predicate.Attachment
- func ObsHashNEQ(v string) predicate.Attachment
- func ObsHashNotIn(vs ...string) predicate.Attachment
- func ObsOid(v string) predicate.Attachment
- func ObsOidContains(v string) predicate.Attachment
- func ObsOidContainsFold(v string) predicate.Attachment
- func ObsOidEQ(v string) predicate.Attachment
- func ObsOidEqualFold(v string) predicate.Attachment
- func ObsOidGT(v string) predicate.Attachment
- func ObsOidGTE(v string) predicate.Attachment
- func ObsOidHasPrefix(v string) predicate.Attachment
- func ObsOidHasSuffix(v string) predicate.Attachment
- func ObsOidIn(vs ...string) predicate.Attachment
- func ObsOidLT(v string) predicate.Attachment
- func ObsOidLTE(v string) predicate.Attachment
- func ObsOidNEQ(v string) predicate.Attachment
- func ObsOidNotIn(vs ...string) predicate.Attachment
- func Or(predicates ...predicate.Attachment) predicate.Attachment
- func TicketID(v int) predicate.Attachment
- func TicketIDEQ(v int) predicate.Attachment
- func TicketIDIn(vs ...int) predicate.Attachment
- func TicketIDIsNil() predicate.Attachment
- func TicketIDNEQ(v int) predicate.Attachment
- func TicketIDNotIn(vs ...int) predicate.Attachment
- func TicketIDNotNil() predicate.Attachment
- func ValidColumn(column string) bool
- type AttachmentType
Constants ¶
const ( // Label holds the string label denoting the attachment type in the database. Label = "attachment" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldApplicationID holds the string denoting the application_id field in the database. FieldApplicationID = "application_id" // FieldTicketID holds the string denoting the ticket_id field in the database. FieldTicketID = "ticket_id" // FieldAttachmentType holds the string denoting the attachment_type field in the database. FieldAttachmentType = "attachment_type" // FieldObsOid holds the string denoting the obs_oid field in the database. FieldObsOid = "obs_oid" // FieldObsHash holds the string denoting the obs_hash field in the database. FieldObsHash = "obs_hash" // FieldCreatedDtime holds the string denoting the created_dtime field in the database. FieldCreatedDtime = "created_dtime" // EdgeApplications holds the string denoting the applications edge name in mutations. EdgeApplications = "applications" // EdgeTickets holds the string denoting the tickets edge name in mutations. EdgeTickets = "tickets" // ApplicationFieldID holds the string denoting the ID field of the Application. ApplicationFieldID = "application_id" // TicketFieldID holds the string denoting the ID field of the Ticket. TicketFieldID = "ticket_id" // Table holds the table name of the attachment in the database. Table = "attachments" // ApplicationsTable is the table that holds the applications relation/edge. ApplicationsTable = "attachments" // ApplicationsInverseTable is the table name for the Application entity. // It exists in this package in order to avoid circular dependency with the "application" package. ApplicationsInverseTable = "applications" // ApplicationsColumn is the table column denoting the applications relation/edge. ApplicationsColumn = "application_id" // TicketsTable is the table that holds the tickets relation/edge. TicketsTable = "attachments" // TicketsInverseTable is the table name for the Ticket entity. // It exists in this package in order to avoid circular dependency with the "ticket" package. TicketsInverseTable = "tickets" // TicketsColumn is the table column denoting the tickets relation/edge. TicketsColumn = "ticket_id" )
Variables ¶
var ( // ObsOidValidator is a validator for the "obs_oid" field. It is called by the builders before save. ObsOidValidator func(string) error // ObsHashValidator is a validator for the "obs_hash" field. It is called by the builders before save. ObsHashValidator func(string) error // DefaultCreatedDtime holds the default value on creation for the "created_dtime" field. DefaultCreatedDtime func() time.Time )
var Columns = []string{ FieldID, FieldApplicationID, FieldTicketID, FieldAttachmentType, FieldObsOid, FieldObsHash, FieldCreatedDtime, }
Columns holds all SQL columns for attachment fields.
Functions ¶
func And ¶
func And(predicates ...predicate.Attachment) predicate.Attachment
And groups predicates with the AND operator between them.
func ApplicationID ¶
func ApplicationID(v uuid.UUID) predicate.Attachment
ApplicationID applies equality check predicate on the "application_id" field. It's identical to ApplicationIDEQ.
func ApplicationIDEQ ¶
func ApplicationIDEQ(v uuid.UUID) predicate.Attachment
ApplicationIDEQ applies the EQ predicate on the "application_id" field.
func ApplicationIDIn ¶
func ApplicationIDIn(vs ...uuid.UUID) predicate.Attachment
ApplicationIDIn applies the In predicate on the "application_id" field.
func ApplicationIDNEQ ¶
func ApplicationIDNEQ(v uuid.UUID) predicate.Attachment
ApplicationIDNEQ applies the NEQ predicate on the "application_id" field.
func ApplicationIDNotIn ¶
func ApplicationIDNotIn(vs ...uuid.UUID) predicate.Attachment
ApplicationIDNotIn applies the NotIn predicate on the "application_id" field.
func AttachmentTypeEQ ¶
func AttachmentTypeEQ(v AttachmentType) predicate.Attachment
AttachmentTypeEQ applies the EQ predicate on the "attachment_type" field.
func AttachmentTypeIn ¶
func AttachmentTypeIn(vs ...AttachmentType) predicate.Attachment
AttachmentTypeIn applies the In predicate on the "attachment_type" field.
func AttachmentTypeNEQ ¶
func AttachmentTypeNEQ(v AttachmentType) predicate.Attachment
AttachmentTypeNEQ applies the NEQ predicate on the "attachment_type" field.
func AttachmentTypeNotIn ¶
func AttachmentTypeNotIn(vs ...AttachmentType) predicate.Attachment
AttachmentTypeNotIn applies the NotIn predicate on the "attachment_type" field.
func AttachmentTypeValidator ¶
func AttachmentTypeValidator(at AttachmentType) error
AttachmentTypeValidator is a validator for the "attachment_type" field enum values. It is called by the builders before save.
func CreatedDtime ¶
func CreatedDtime(v time.Time) predicate.Attachment
CreatedDtime applies equality check predicate on the "created_dtime" field. It's identical to CreatedDtimeEQ.
func CreatedDtimeEQ ¶
func CreatedDtimeEQ(v time.Time) predicate.Attachment
CreatedDtimeEQ applies the EQ predicate on the "created_dtime" field.
func CreatedDtimeGT ¶
func CreatedDtimeGT(v time.Time) predicate.Attachment
CreatedDtimeGT applies the GT predicate on the "created_dtime" field.
func CreatedDtimeGTE ¶
func CreatedDtimeGTE(v time.Time) predicate.Attachment
CreatedDtimeGTE applies the GTE predicate on the "created_dtime" field.
func CreatedDtimeIn ¶
func CreatedDtimeIn(vs ...time.Time) predicate.Attachment
CreatedDtimeIn applies the In predicate on the "created_dtime" field.
func CreatedDtimeLT ¶
func CreatedDtimeLT(v time.Time) predicate.Attachment
CreatedDtimeLT applies the LT predicate on the "created_dtime" field.
func CreatedDtimeLTE ¶
func CreatedDtimeLTE(v time.Time) predicate.Attachment
CreatedDtimeLTE applies the LTE predicate on the "created_dtime" field.
func CreatedDtimeNEQ ¶
func CreatedDtimeNEQ(v time.Time) predicate.Attachment
CreatedDtimeNEQ applies the NEQ predicate on the "created_dtime" field.
func CreatedDtimeNotIn ¶
func CreatedDtimeNotIn(vs ...time.Time) predicate.Attachment
CreatedDtimeNotIn applies the NotIn predicate on the "created_dtime" field.
func HasApplications ¶
func HasApplications() predicate.Attachment
HasApplications applies the HasEdge predicate on the "applications" edge.
func HasApplicationsWith ¶
func HasApplicationsWith(preds ...predicate.Application) predicate.Attachment
HasApplicationsWith applies the HasEdge predicate on the "applications" edge with a given conditions (other predicates).
func HasTickets ¶
func HasTickets() predicate.Attachment
HasTickets applies the HasEdge predicate on the "tickets" edge.
func HasTicketsWith ¶
func HasTicketsWith(preds ...predicate.Ticket) predicate.Attachment
HasTicketsWith applies the HasEdge predicate on the "tickets" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.Attachment
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Attachment
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Attachment
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Attachment
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Attachment
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Attachment) predicate.Attachment
Not applies the not operator on the given predicate.
func ObsHash ¶
func ObsHash(v string) predicate.Attachment
ObsHash applies equality check predicate on the "obs_hash" field. It's identical to ObsHashEQ.
func ObsHashContains ¶
func ObsHashContains(v string) predicate.Attachment
ObsHashContains applies the Contains predicate on the "obs_hash" field.
func ObsHashContainsFold ¶
func ObsHashContainsFold(v string) predicate.Attachment
ObsHashContainsFold applies the ContainsFold predicate on the "obs_hash" field.
func ObsHashEQ ¶
func ObsHashEQ(v string) predicate.Attachment
ObsHashEQ applies the EQ predicate on the "obs_hash" field.
func ObsHashEqualFold ¶
func ObsHashEqualFold(v string) predicate.Attachment
ObsHashEqualFold applies the EqualFold predicate on the "obs_hash" field.
func ObsHashGT ¶
func ObsHashGT(v string) predicate.Attachment
ObsHashGT applies the GT predicate on the "obs_hash" field.
func ObsHashGTE ¶
func ObsHashGTE(v string) predicate.Attachment
ObsHashGTE applies the GTE predicate on the "obs_hash" field.
func ObsHashHasPrefix ¶
func ObsHashHasPrefix(v string) predicate.Attachment
ObsHashHasPrefix applies the HasPrefix predicate on the "obs_hash" field.
func ObsHashHasSuffix ¶
func ObsHashHasSuffix(v string) predicate.Attachment
ObsHashHasSuffix applies the HasSuffix predicate on the "obs_hash" field.
func ObsHashIn ¶
func ObsHashIn(vs ...string) predicate.Attachment
ObsHashIn applies the In predicate on the "obs_hash" field.
func ObsHashLT ¶
func ObsHashLT(v string) predicate.Attachment
ObsHashLT applies the LT predicate on the "obs_hash" field.
func ObsHashLTE ¶
func ObsHashLTE(v string) predicate.Attachment
ObsHashLTE applies the LTE predicate on the "obs_hash" field.
func ObsHashNEQ ¶
func ObsHashNEQ(v string) predicate.Attachment
ObsHashNEQ applies the NEQ predicate on the "obs_hash" field.
func ObsHashNotIn ¶
func ObsHashNotIn(vs ...string) predicate.Attachment
ObsHashNotIn applies the NotIn predicate on the "obs_hash" field.
func ObsOid ¶
func ObsOid(v string) predicate.Attachment
ObsOid applies equality check predicate on the "obs_oid" field. It's identical to ObsOidEQ.
func ObsOidContains ¶
func ObsOidContains(v string) predicate.Attachment
ObsOidContains applies the Contains predicate on the "obs_oid" field.
func ObsOidContainsFold ¶
func ObsOidContainsFold(v string) predicate.Attachment
ObsOidContainsFold applies the ContainsFold predicate on the "obs_oid" field.
func ObsOidEQ ¶
func ObsOidEQ(v string) predicate.Attachment
ObsOidEQ applies the EQ predicate on the "obs_oid" field.
func ObsOidEqualFold ¶
func ObsOidEqualFold(v string) predicate.Attachment
ObsOidEqualFold applies the EqualFold predicate on the "obs_oid" field.
func ObsOidGT ¶
func ObsOidGT(v string) predicate.Attachment
ObsOidGT applies the GT predicate on the "obs_oid" field.
func ObsOidGTE ¶
func ObsOidGTE(v string) predicate.Attachment
ObsOidGTE applies the GTE predicate on the "obs_oid" field.
func ObsOidHasPrefix ¶
func ObsOidHasPrefix(v string) predicate.Attachment
ObsOidHasPrefix applies the HasPrefix predicate on the "obs_oid" field.
func ObsOidHasSuffix ¶
func ObsOidHasSuffix(v string) predicate.Attachment
ObsOidHasSuffix applies the HasSuffix predicate on the "obs_oid" field.
func ObsOidIn ¶
func ObsOidIn(vs ...string) predicate.Attachment
ObsOidIn applies the In predicate on the "obs_oid" field.
func ObsOidLT ¶
func ObsOidLT(v string) predicate.Attachment
ObsOidLT applies the LT predicate on the "obs_oid" field.
func ObsOidLTE ¶
func ObsOidLTE(v string) predicate.Attachment
ObsOidLTE applies the LTE predicate on the "obs_oid" field.
func ObsOidNEQ ¶
func ObsOidNEQ(v string) predicate.Attachment
ObsOidNEQ applies the NEQ predicate on the "obs_oid" field.
func ObsOidNotIn ¶
func ObsOidNotIn(vs ...string) predicate.Attachment
ObsOidNotIn applies the NotIn predicate on the "obs_oid" field.
func Or ¶
func Or(predicates ...predicate.Attachment) predicate.Attachment
Or groups predicates with the OR operator between them.
func TicketID ¶
func TicketID(v int) predicate.Attachment
TicketID applies equality check predicate on the "ticket_id" field. It's identical to TicketIDEQ.
func TicketIDEQ ¶
func TicketIDEQ(v int) predicate.Attachment
TicketIDEQ applies the EQ predicate on the "ticket_id" field.
func TicketIDIn ¶
func TicketIDIn(vs ...int) predicate.Attachment
TicketIDIn applies the In predicate on the "ticket_id" field.
func TicketIDIsNil ¶
func TicketIDIsNil() predicate.Attachment
TicketIDIsNil applies the IsNil predicate on the "ticket_id" field.
func TicketIDNEQ ¶
func TicketIDNEQ(v int) predicate.Attachment
TicketIDNEQ applies the NEQ predicate on the "ticket_id" field.
func TicketIDNotIn ¶
func TicketIDNotIn(vs ...int) predicate.Attachment
TicketIDNotIn applies the NotIn predicate on the "ticket_id" field.
func TicketIDNotNil ¶
func TicketIDNotNil() predicate.Attachment
TicketIDNotNil applies the NotNil predicate on the "ticket_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type AttachmentType ¶
type AttachmentType string
AttachmentType defines the type for the "attachment_type" enum field.
const ( AttachmentTypeBizCert AttachmentType = "biz_cert" AttachmentTypeStoreAppearance AttachmentType = "store_appearance" AttachmentTypeIDDocument AttachmentType = "id_document" AttachmentTypeOther AttachmentType = "other" AttachmentTypeSupplement AttachmentType = "supplement" AttachmentTypeReference AttachmentType = "reference" )
AttachmentType values.
func (AttachmentType) String ¶
func (at AttachmentType) String() string