announcement

package
v0.0.0-...-52a3571 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the announcement type in the database.
	Label = "announcement"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// FieldCreatedTime holds the string denoting the createdtime field in the database.
	FieldCreatedTime = "created_time"
	// FieldModifiedTime holds the string denoting the modifiedtime field in the database.
	FieldModifiedTime = "modified_time"
	// EdgeAuthor holds the string denoting the author edge name in mutations.
	EdgeAuthor = "author"
	// EdgeTeam holds the string denoting the team edge name in mutations.
	EdgeTeam = "team"
	// Table holds the table name of the announcement in the database.
	Table = "announcements"
	// AuthorTable is the table that holds the author relation/edge.
	AuthorTable = "users"
	// AuthorInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	AuthorInverseTable = "users"
	// AuthorColumn is the table column denoting the author relation/edge.
	AuthorColumn = "announcement_author"
	// TeamTable is the table that holds the team relation/edge.
	TeamTable = "announcements"
	// TeamInverseTable is the table name for the Team entity.
	// It exists in this package in order to avoid circular dependency with the "team" package.
	TeamInverseTable = "teams"
	// TeamColumn is the table column denoting the team relation/edge.
	TeamColumn = "announcement_team"
)

Variables

View Source
var (
	// TitleValidator is a validator for the "title" field. It is called by the builders before save.
	TitleValidator func(string) error
	// DefaultCreatedTime holds the default value on creation for the "createdTime" field.
	DefaultCreatedTime time.Time
	// DefaultModifiedTime holds the default value on creation for the "modifiedTime" field.
	DefaultModifiedTime time.Time
)

Columns holds all SQL columns for announcement fields.

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

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

Functions

func And

func And(predicates ...predicate.Announcement) predicate.Announcement

And groups predicates with the AND operator between them.

func Content

func Content(v string) predicate.Announcement

Content applies equality check predicate on the "content" field. It's identical to ContentEQ.

func ContentContains

func ContentContains(v string) predicate.Announcement

ContentContains applies the Contains predicate on the "content" field.

func ContentContainsFold

func ContentContainsFold(v string) predicate.Announcement

ContentContainsFold applies the ContainsFold predicate on the "content" field.

func ContentEQ

func ContentEQ(v string) predicate.Announcement

ContentEQ applies the EQ predicate on the "content" field.

func ContentEqualFold

func ContentEqualFold(v string) predicate.Announcement

ContentEqualFold applies the EqualFold predicate on the "content" field.

func ContentGT

func ContentGT(v string) predicate.Announcement

ContentGT applies the GT predicate on the "content" field.

func ContentGTE

func ContentGTE(v string) predicate.Announcement

ContentGTE applies the GTE predicate on the "content" field.

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.Announcement

ContentHasPrefix applies the HasPrefix predicate on the "content" field.

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.Announcement

ContentHasSuffix applies the HasSuffix predicate on the "content" field.

func ContentIn

func ContentIn(vs ...string) predicate.Announcement

ContentIn applies the In predicate on the "content" field.

func ContentLT

func ContentLT(v string) predicate.Announcement

ContentLT applies the LT predicate on the "content" field.

func ContentLTE

func ContentLTE(v string) predicate.Announcement

ContentLTE applies the LTE predicate on the "content" field.

func ContentNEQ

func ContentNEQ(v string) predicate.Announcement

ContentNEQ applies the NEQ predicate on the "content" field.

func ContentNotIn

func ContentNotIn(vs ...string) predicate.Announcement

ContentNotIn applies the NotIn predicate on the "content" field.

func CreatedTime

func CreatedTime(v time.Time) predicate.Announcement

CreatedTime applies equality check predicate on the "createdTime" field. It's identical to CreatedTimeEQ.

func CreatedTimeEQ

func CreatedTimeEQ(v time.Time) predicate.Announcement

CreatedTimeEQ applies the EQ predicate on the "createdTime" field.

func CreatedTimeGT

func CreatedTimeGT(v time.Time) predicate.Announcement

CreatedTimeGT applies the GT predicate on the "createdTime" field.

func CreatedTimeGTE

func CreatedTimeGTE(v time.Time) predicate.Announcement

CreatedTimeGTE applies the GTE predicate on the "createdTime" field.

func CreatedTimeIn

func CreatedTimeIn(vs ...time.Time) predicate.Announcement

CreatedTimeIn applies the In predicate on the "createdTime" field.

func CreatedTimeLT

func CreatedTimeLT(v time.Time) predicate.Announcement

CreatedTimeLT applies the LT predicate on the "createdTime" field.

func CreatedTimeLTE

func CreatedTimeLTE(v time.Time) predicate.Announcement

CreatedTimeLTE applies the LTE predicate on the "createdTime" field.

func CreatedTimeNEQ

func CreatedTimeNEQ(v time.Time) predicate.Announcement

CreatedTimeNEQ applies the NEQ predicate on the "createdTime" field.

func CreatedTimeNotIn

func CreatedTimeNotIn(vs ...time.Time) predicate.Announcement

CreatedTimeNotIn applies the NotIn predicate on the "createdTime" field.

func HasAuthor

func HasAuthor() predicate.Announcement

HasAuthor applies the HasEdge predicate on the "author" edge.

func HasAuthorWith

func HasAuthorWith(preds ...predicate.User) predicate.Announcement

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

func HasTeam

func HasTeam() predicate.Announcement

HasTeam applies the HasEdge predicate on the "team" edge.

func HasTeamWith

func HasTeamWith(preds ...predicate.Team) predicate.Announcement

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Announcement

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Announcement

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Announcement

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Announcement

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Announcement

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Announcement

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Announcement

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Announcement

IDNotIn applies the NotIn predicate on the ID field.

func ModifiedTime

func ModifiedTime(v time.Time) predicate.Announcement

ModifiedTime applies equality check predicate on the "modifiedTime" field. It's identical to ModifiedTimeEQ.

func ModifiedTimeEQ

func ModifiedTimeEQ(v time.Time) predicate.Announcement

ModifiedTimeEQ applies the EQ predicate on the "modifiedTime" field.

func ModifiedTimeGT

func ModifiedTimeGT(v time.Time) predicate.Announcement

ModifiedTimeGT applies the GT predicate on the "modifiedTime" field.

func ModifiedTimeGTE

func ModifiedTimeGTE(v time.Time) predicate.Announcement

ModifiedTimeGTE applies the GTE predicate on the "modifiedTime" field.

func ModifiedTimeIn

func ModifiedTimeIn(vs ...time.Time) predicate.Announcement

ModifiedTimeIn applies the In predicate on the "modifiedTime" field.

func ModifiedTimeLT

func ModifiedTimeLT(v time.Time) predicate.Announcement

ModifiedTimeLT applies the LT predicate on the "modifiedTime" field.

func ModifiedTimeLTE

func ModifiedTimeLTE(v time.Time) predicate.Announcement

ModifiedTimeLTE applies the LTE predicate on the "modifiedTime" field.

func ModifiedTimeNEQ

func ModifiedTimeNEQ(v time.Time) predicate.Announcement

ModifiedTimeNEQ applies the NEQ predicate on the "modifiedTime" field.

func ModifiedTimeNotIn

func ModifiedTimeNotIn(vs ...time.Time) predicate.Announcement

ModifiedTimeNotIn applies the NotIn predicate on the "modifiedTime" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Announcement) predicate.Announcement

Or groups predicates with the OR operator between them.

func Title

func Title(v string) predicate.Announcement

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Announcement

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Announcement

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Announcement

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Announcement

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Announcement

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Announcement

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Announcement

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Announcement

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Announcement

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Announcement

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Announcement

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Announcement

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Announcement

TitleNotIn applies the NotIn predicate on the "title" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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