schema

package
v0.0.0-...-1479dc7 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RefSchema

type RefSchema struct {
	ent.Schema
}

RefSchema is in other database schema but in the same database instance. it should not be migrated(create or update)

func (RefSchema) Annotations

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

func (RefSchema) Fields

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

Fields of the RefSchema. pick some fields which project need.

type User

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Annotations

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

annotation

func (User) Edges

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

Edges of the User.

func (User) Fields

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

Fields of the User.

func (User) Mixin

func (User) Mixin() []ent.Mixin

Jump to

Keyboard shortcuts

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