note

package
v0.0.0-...-8e868a9 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the note type in the database.
	Label = "note"
	// 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"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// FieldResources holds the string denoting the resources field in the database.
	FieldResources = "resources"
	// FieldAiCurriculum holds the string denoting the ai_curriculum field in the database.
	FieldAiCurriculum = "ai_curriculum"
	// FieldVisibility holds the string denoting the visibility field in the database.
	FieldVisibility = "visibility"
	// FieldPermissionLevel holds the string denoting the permission_level field in the database.
	FieldPermissionLevel = "permission_level"
	// FieldShareToken holds the string denoting the share_token field in the database.
	FieldShareToken = "share_token"
	// FieldAiProcessing holds the string denoting the ai_processing field in the database.
	FieldAiProcessing = "ai_processing"
	// 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"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeLikes holds the string denoting the likes edge name in mutations.
	EdgeLikes = "likes"
	// EdgeReposts holds the string denoting the reposts edge name in mutations.
	EdgeReposts = "reposts"
	// Table holds the table name of the note in the database.
	Table = "notes"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "notes"
	// OwnerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	OwnerInverseTable = "users"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "user_notes"
	// LikesTable is the table that holds the likes relation/edge.
	LikesTable = "note_likes"
	// LikesInverseTable is the table name for the NoteLike entity.
	// It exists in this package in order to avoid circular dependency with the "notelike" package.
	LikesInverseTable = "note_likes"
	// LikesColumn is the table column denoting the likes relation/edge.
	LikesColumn = "note_likes"
	// RepostsTable is the table that holds the reposts relation/edge.
	RepostsTable = "note_reposts"
	// RepostsInverseTable is the table name for the NoteRepost entity.
	// It exists in this package in order to avoid circular dependency with the "noterepost" package.
	RepostsInverseTable = "note_reposts"
	// RepostsColumn is the table column denoting the reposts relation/edge.
	RepostsColumn = "note_reposts"
)
View Source
const DefaultPermissionLevel = PermissionLevelReadOnly

PermissionLevelReadOnly is the default value of the PermissionLevel enum.

View Source
const DefaultVisibility = VisibilityPrivate

VisibilityPrivate is the default value of the Visibility enum.

Variables

View Source
var (
	// TitleValidator is a validator for the "title" field. It is called by the builders before save.
	TitleValidator func(string) error
	// DefaultAiProcessing holds the default value on creation for the "ai_processing" field.
	DefaultAiProcessing bool
	// 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
)

Columns holds all SQL columns for note fields.

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

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

Functions

func AiCurriculum

func AiCurriculum(v string) predicate.Note

AiCurriculum applies equality check predicate on the "ai_curriculum" field. It's identical to AiCurriculumEQ.

func AiCurriculumContains

func AiCurriculumContains(v string) predicate.Note

AiCurriculumContains applies the Contains predicate on the "ai_curriculum" field.

func AiCurriculumContainsFold

func AiCurriculumContainsFold(v string) predicate.Note

AiCurriculumContainsFold applies the ContainsFold predicate on the "ai_curriculum" field.

func AiCurriculumEQ

func AiCurriculumEQ(v string) predicate.Note

AiCurriculumEQ applies the EQ predicate on the "ai_curriculum" field.

func AiCurriculumEqualFold

func AiCurriculumEqualFold(v string) predicate.Note

AiCurriculumEqualFold applies the EqualFold predicate on the "ai_curriculum" field.

func AiCurriculumGT

func AiCurriculumGT(v string) predicate.Note

AiCurriculumGT applies the GT predicate on the "ai_curriculum" field.

func AiCurriculumGTE

func AiCurriculumGTE(v string) predicate.Note

AiCurriculumGTE applies the GTE predicate on the "ai_curriculum" field.

func AiCurriculumHasPrefix

func AiCurriculumHasPrefix(v string) predicate.Note

AiCurriculumHasPrefix applies the HasPrefix predicate on the "ai_curriculum" field.

func AiCurriculumHasSuffix

func AiCurriculumHasSuffix(v string) predicate.Note

AiCurriculumHasSuffix applies the HasSuffix predicate on the "ai_curriculum" field.

func AiCurriculumIn

func AiCurriculumIn(vs ...string) predicate.Note

AiCurriculumIn applies the In predicate on the "ai_curriculum" field.

func AiCurriculumIsNil

func AiCurriculumIsNil() predicate.Note

AiCurriculumIsNil applies the IsNil predicate on the "ai_curriculum" field.

func AiCurriculumLT

func AiCurriculumLT(v string) predicate.Note

AiCurriculumLT applies the LT predicate on the "ai_curriculum" field.

func AiCurriculumLTE

func AiCurriculumLTE(v string) predicate.Note

AiCurriculumLTE applies the LTE predicate on the "ai_curriculum" field.

func AiCurriculumNEQ

func AiCurriculumNEQ(v string) predicate.Note

AiCurriculumNEQ applies the NEQ predicate on the "ai_curriculum" field.

func AiCurriculumNotIn

func AiCurriculumNotIn(vs ...string) predicate.Note

AiCurriculumNotIn applies the NotIn predicate on the "ai_curriculum" field.

func AiCurriculumNotNil

func AiCurriculumNotNil() predicate.Note

AiCurriculumNotNil applies the NotNil predicate on the "ai_curriculum" field.

func AiProcessing

func AiProcessing(v bool) predicate.Note

AiProcessing applies equality check predicate on the "ai_processing" field. It's identical to AiProcessingEQ.

func AiProcessingEQ

func AiProcessingEQ(v bool) predicate.Note

AiProcessingEQ applies the EQ predicate on the "ai_processing" field.

func AiProcessingNEQ

func AiProcessingNEQ(v bool) predicate.Note

AiProcessingNEQ applies the NEQ predicate on the "ai_processing" field.

func And

func And(predicates ...predicate.Note) predicate.Note

And groups predicates with the AND operator between them.

func Content

func Content(v string) predicate.Note

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

func ContentContains

func ContentContains(v string) predicate.Note

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

func ContentContainsFold

func ContentContainsFold(v string) predicate.Note

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

func ContentEQ

func ContentEQ(v string) predicate.Note

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

func ContentEqualFold

func ContentEqualFold(v string) predicate.Note

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

func ContentGT

func ContentGT(v string) predicate.Note

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

func ContentGTE

func ContentGTE(v string) predicate.Note

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

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.Note

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

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.Note

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

func ContentIn

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

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

func ContentIsNil

func ContentIsNil() predicate.Note

ContentIsNil applies the IsNil predicate on the "content" field.

func ContentLT

func ContentLT(v string) predicate.Note

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

func ContentLTE

func ContentLTE(v string) predicate.Note

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

func ContentNEQ

func ContentNEQ(v string) predicate.Note

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

func ContentNotIn

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

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

func ContentNotNil

func ContentNotNil() predicate.Note

ContentNotNil applies the NotNil predicate on the "content" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Note

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Note

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Note

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Note

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Note

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Note

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Note

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Note

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Note

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Description

func Description(v string) predicate.Note

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Note

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Note

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Note

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Note

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Note

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Note

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Note

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Note

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Note

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Note

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Note

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Note

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Note

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Note

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Note

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasLikes

func HasLikes() predicate.Note

HasLikes applies the HasEdge predicate on the "likes" edge.

func HasLikesWith

func HasLikesWith(preds ...predicate.NoteLike) predicate.Note

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

func HasOwner

func HasOwner() predicate.Note

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.Note

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

func HasReposts

func HasReposts() predicate.Note

HasReposts applies the HasEdge predicate on the "reposts" edge.

func HasRepostsWith

func HasRepostsWith(preds ...predicate.NoteRepost) predicate.Note

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

func ID

func ID(id int) predicate.Note

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Note

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Note

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Note

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Note

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Note

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Note

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Note

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Note

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Note) predicate.Note

Or groups predicates with the OR operator between them.

func PermissionLevelEQ

func PermissionLevelEQ(v PermissionLevel) predicate.Note

PermissionLevelEQ applies the EQ predicate on the "permission_level" field.

func PermissionLevelIn

func PermissionLevelIn(vs ...PermissionLevel) predicate.Note

PermissionLevelIn applies the In predicate on the "permission_level" field.

func PermissionLevelNEQ

func PermissionLevelNEQ(v PermissionLevel) predicate.Note

PermissionLevelNEQ applies the NEQ predicate on the "permission_level" field.

func PermissionLevelNotIn

func PermissionLevelNotIn(vs ...PermissionLevel) predicate.Note

PermissionLevelNotIn applies the NotIn predicate on the "permission_level" field.

func PermissionLevelValidator

func PermissionLevelValidator(pl PermissionLevel) error

PermissionLevelValidator is a validator for the "permission_level" field enum values. It is called by the builders before save.

func ResourcesIsNil

func ResourcesIsNil() predicate.Note

ResourcesIsNil applies the IsNil predicate on the "resources" field.

func ResourcesNotNil

func ResourcesNotNil() predicate.Note

ResourcesNotNil applies the NotNil predicate on the "resources" field.

func ShareToken

func ShareToken(v string) predicate.Note

ShareToken applies equality check predicate on the "share_token" field. It's identical to ShareTokenEQ.

func ShareTokenContains

func ShareTokenContains(v string) predicate.Note

ShareTokenContains applies the Contains predicate on the "share_token" field.

func ShareTokenContainsFold

func ShareTokenContainsFold(v string) predicate.Note

ShareTokenContainsFold applies the ContainsFold predicate on the "share_token" field.

func ShareTokenEQ

func ShareTokenEQ(v string) predicate.Note

ShareTokenEQ applies the EQ predicate on the "share_token" field.

func ShareTokenEqualFold

func ShareTokenEqualFold(v string) predicate.Note

ShareTokenEqualFold applies the EqualFold predicate on the "share_token" field.

func ShareTokenGT

func ShareTokenGT(v string) predicate.Note

ShareTokenGT applies the GT predicate on the "share_token" field.

func ShareTokenGTE

func ShareTokenGTE(v string) predicate.Note

ShareTokenGTE applies the GTE predicate on the "share_token" field.

func ShareTokenHasPrefix

func ShareTokenHasPrefix(v string) predicate.Note

ShareTokenHasPrefix applies the HasPrefix predicate on the "share_token" field.

func ShareTokenHasSuffix

func ShareTokenHasSuffix(v string) predicate.Note

ShareTokenHasSuffix applies the HasSuffix predicate on the "share_token" field.

func ShareTokenIn

func ShareTokenIn(vs ...string) predicate.Note

ShareTokenIn applies the In predicate on the "share_token" field.

func ShareTokenIsNil

func ShareTokenIsNil() predicate.Note

ShareTokenIsNil applies the IsNil predicate on the "share_token" field.

func ShareTokenLT

func ShareTokenLT(v string) predicate.Note

ShareTokenLT applies the LT predicate on the "share_token" field.

func ShareTokenLTE

func ShareTokenLTE(v string) predicate.Note

ShareTokenLTE applies the LTE predicate on the "share_token" field.

func ShareTokenNEQ

func ShareTokenNEQ(v string) predicate.Note

ShareTokenNEQ applies the NEQ predicate on the "share_token" field.

func ShareTokenNotIn

func ShareTokenNotIn(vs ...string) predicate.Note

ShareTokenNotIn applies the NotIn predicate on the "share_token" field.

func ShareTokenNotNil

func ShareTokenNotNil() predicate.Note

ShareTokenNotNil applies the NotNil predicate on the "share_token" field.

func Title

func Title(v string) predicate.Note

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

func TitleContains

func TitleContains(v string) predicate.Note

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

func TitleContainsFold

func TitleContainsFold(v string) predicate.Note

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

func TitleEQ

func TitleEQ(v string) predicate.Note

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

func TitleEqualFold

func TitleEqualFold(v string) predicate.Note

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

func TitleGT

func TitleGT(v string) predicate.Note

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

func TitleGTE

func TitleGTE(v string) predicate.Note

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

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Note

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

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Note

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

func TitleIn

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

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

func TitleLT

func TitleLT(v string) predicate.Note

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

func TitleLTE

func TitleLTE(v string) predicate.Note

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

func TitleNEQ

func TitleNEQ(v string) predicate.Note

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

func TitleNotIn

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Note

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Note

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Note

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Note

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Note

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Note

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Note

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Note

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Note

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

func VisibilityEQ

func VisibilityEQ(v Visibility) predicate.Note

VisibilityEQ applies the EQ predicate on the "visibility" field.

func VisibilityIn

func VisibilityIn(vs ...Visibility) predicate.Note

VisibilityIn applies the In predicate on the "visibility" field.

func VisibilityNEQ

func VisibilityNEQ(v Visibility) predicate.Note

VisibilityNEQ applies the NEQ predicate on the "visibility" field.

func VisibilityNotIn

func VisibilityNotIn(vs ...Visibility) predicate.Note

VisibilityNotIn applies the NotIn predicate on the "visibility" field.

func VisibilityValidator

func VisibilityValidator(v Visibility) error

VisibilityValidator is a validator for the "visibility" field enum values. It is called by the builders before save.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Note queries.

func ByAiCurriculum

func ByAiCurriculum(opts ...sql.OrderTermOption) OrderOption

ByAiCurriculum orders the results by the ai_curriculum field.

func ByAiProcessing

func ByAiProcessing(opts ...sql.OrderTermOption) OrderOption

ByAiProcessing orders the results by the ai_processing field.

func ByContent

func ByContent(opts ...sql.OrderTermOption) OrderOption

ByContent orders the results by the content field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDescription

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByLikes

func ByLikes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByLikes orders the results by likes terms.

func ByLikesCount

func ByLikesCount(opts ...sql.OrderTermOption) OrderOption

ByLikesCount orders the results by likes count.

func ByOwnerField

func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption

ByOwnerField orders the results by owner field.

func ByPermissionLevel

func ByPermissionLevel(opts ...sql.OrderTermOption) OrderOption

ByPermissionLevel orders the results by the permission_level field.

func ByReposts

func ByReposts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByReposts orders the results by reposts terms.

func ByRepostsCount

func ByRepostsCount(opts ...sql.OrderTermOption) OrderOption

ByRepostsCount orders the results by reposts count.

func ByShareToken

func ByShareToken(opts ...sql.OrderTermOption) OrderOption

ByShareToken orders the results by the share_token field.

func ByTitle

func ByTitle(opts ...sql.OrderTermOption) OrderOption

ByTitle orders the results by the title field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByVisibility

func ByVisibility(opts ...sql.OrderTermOption) OrderOption

ByVisibility orders the results by the visibility field.

type PermissionLevel

type PermissionLevel string

PermissionLevel defines the type for the "permission_level" enum field.

const (
	PermissionLevelReadOnly          PermissionLevel = "read_only"
	PermissionLevelReadWrite         PermissionLevel = "read_write"
	PermissionLevelReadWriteApproval PermissionLevel = "read_write_approval"
)

PermissionLevel values.

func (PermissionLevel) String

func (pl PermissionLevel) String() string

type Visibility

type Visibility string

Visibility defines the type for the "visibility" enum field.

const (
	VisibilityPrivate Visibility = "private"
	VisibilityPublic  Visibility = "public"
)

Visibility values.

func (Visibility) String

func (v Visibility) String() string

Jump to

Keyboard shortcuts

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