schema

package
v0.0.0-...-6a61234 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommonFeedEdges = []ent.Edge{
	edge.To("reactions", Reaction.Type),
}
View Source
var CommonFeedFields = append(
	CommonFields,
	field.String("text").NotEmpty(),
	field.String("slug").NotEmpty().Unique(),
	field.UUID("author_id", uuid.UUID{}),
)
View Source
var CommonFields = []ent.Field{
	field.UUID("id", uuid.UUID{}).
		Default(uuid.New),
	field.Time("created_at").
		Default(time.Now),
	field.Time("updated_at").
		Default(time.Now).
		UpdateDefault(time.Now),
}

Functions

This section is empty.

Types

type Chat

type Chat struct {
	ent.Schema
}

func (Chat) Annotations

func (Chat) Annotations() []schema.Annotation

Annotations of the Friend.

func (Chat) Edges

func (Chat) Edges() []ent.Edge

Edges of the Chat.

func (Chat) Fields

func (Chat) Fields() []ent.Field

Fields of the Chat.

type City

type City struct {
	ent.Schema
}

func (City) Edges

func (City) Edges() []ent.Edge

Edges of the City.

func (City) Fields

func (City) Fields() []ent.Field

Fields of the City.

type Comment

type Comment struct {
	ent.Schema
}

-------------------------------- COMMENT MODEL --------------------------------

func (Comment) Edges

func (Comment) Edges() []ent.Edge

Edges of the Comment. (Relationship)

func (Comment) Fields

func (Comment) Fields() []ent.Field

Fields of the Comment.

type Country

type Country struct {
	ent.Schema
}

func (Country) Edges

func (Country) Edges() []ent.Edge

Edges of the Country.

func (Country) Fields

func (Country) Fields() []ent.Field

Fields of the Country.

type File

type File struct {
	ent.Schema
}

func (File) Edges

func (File) Edges() []ent.Edge

Edges of the File.

func (File) Fields

func (File) Fields() []ent.Field

type Friend

type Friend struct {
	ent.Schema
}

func (Friend) Annotations

func (Friend) Annotations() []schema.Annotation

Annotations of the Friend.

func (Friend) Edges

func (Friend) Edges() []ent.Edge

Edges of the Friend.

func (Friend) Fields

func (Friend) Fields() []ent.Field

Fields of the Friend.

func (Friend) Indexes

func (Friend) Indexes() []ent.Index

Indexes of the Friend.

type Message

type Message struct {
	ent.Schema
}

func (Message) Edges

func (Message) Edges() []ent.Edge

Edges of the Message.

func (Message) Fields

func (Message) Fields() []ent.Field

Fields of the Message.

type Notification

type Notification struct {
	ent.Schema
}

func (Notification) Edges

func (Notification) Edges() []ent.Edge

Edges of the Notification.

func (Notification) Fields

func (Notification) Fields() []ent.Field

Fields of the Notification.

type Otp

type Otp struct {
	ent.Schema
}

func (Otp) Edges

func (Otp) Edges() []ent.Edge

Edges of the Otp.

func (Otp) Fields

func (Otp) Fields() []ent.Field

Fields of the City.

type Post

type Post struct {
	ent.Schema
}

-------------------------------- POST MODEL --------------------------------

func (Post) Edges

func (Post) Edges() []ent.Edge

Edges of the Post. (Relationship)

func (Post) Fields

func (Post) Fields() []ent.Field

Fields of the Post.

type Reaction

type Reaction struct {
	ent.Schema
}

-------------------------------- REACTION MODEL --------------------------------

func (Reaction) Edges

func (Reaction) Edges() []ent.Edge

Edges of the Reaction. (Relationship)

func (Reaction) Fields

func (Reaction) Fields() []ent.Field

Fields of the Reaction.

func (Reaction) Indexes

func (Reaction) Indexes() []ent.Index

Indexes of the Reaction.

type Region

type Region struct {
	ent.Schema
}

func (Region) Edges

func (Region) Edges() []ent.Edge

Edges of the Region.

func (Region) Fields

func (Region) Fields() []ent.Field

Fields of the Region.

type Reply

type Reply struct {
	ent.Schema
}

-------------------------------- REPLY MODEL --------------------------------

func (Reply) Edges

func (Reply) Edges() []ent.Edge

Edges of the Reply. (Relationship)

func (Reply) Fields

func (Reply) Fields() []ent.Field

Fields of the Reply.

type SiteDetail

type SiteDetail struct {
	ent.Schema
}

func (SiteDetail) Fields

func (SiteDetail) Fields() []ent.Field

Fields of the SiteDetail.

type User

type User struct {
	ent.Schema
}

func (User) Edges

func (User) Edges() []ent.Edge

Edges of the User. (Relationship)

func (User) Fields

func (User) Fields() []ent.Field

Fields of the User.

Jump to

Keyboard shortcuts

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