schema

package
v0.0.0-...-a746138 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	ent.Schema
}

Comment holds the schema definition for the Comment entity.

func (Comment) Edges

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

Edges of the Comment.

func (Comment) Fields

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

Fields of the Comment.

type CommentKudo

type CommentKudo struct {
	ent.Schema
}

CommentKudo holds the schema definition for the CommentKudo entity.

func (CommentKudo) Annotations

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

Annotations of the CommentKudo to generate composite primary key from user_id and comment_id.

func (CommentKudo) Edges

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

Edges of the CommentKudo.

func (CommentKudo) Fields

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

Fields of the CommentKudo.

type Moderator

type Moderator struct {
	ent.Schema
}

Tag holds the schema definition for the Tag entity.

func (Moderator) Annotations

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

Annotations of the Moderator to generate composite primary key from moderator_id and topic_id.

func (Moderator) Edges

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

Edges of the Moderator.

func (Moderator) Fields

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

Fields of the Tag.

type Tag

type Tag struct {
	ent.Schema
}

Tag holds the schema definition for the Tag entity.

func (Tag) Edges

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

Edges of the Tag.

func (Tag) Fields

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

Fields of the Tag.

type Thread

type Thread struct {
	ent.Schema
}

Thread holds the schema definition for the Thread entity.

func (Thread) Edges

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

Edges of the Thread.

func (Thread) Fields

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

Fields of the Thread.

type ThreadKudo

type ThreadKudo struct {
	ent.Schema
}

ThreadKudo holds the schema definition for the ThreadKudo entity.

func (ThreadKudo) Annotations

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

Annotations of the ThreadKudo to generate composite primary key from user_id and thread_id.

func (ThreadKudo) Edges

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

Edges of the ThreadKudo.

func (ThreadKudo) Fields

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

Fields of the ThreadKudo.

type Topic

type Topic struct {
	ent.Schema
}

Topic holds the schema definition for the Topic entity.

func (Topic) Edges

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

Edges of the Topic.

func (Topic) Fields

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

Fields of the Topic.

type User

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Edges

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

Edges of the User.

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