schema

package
v0.0.0-...-f17293a Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	ent.Schema
}

App holds the schema definition for the App entity.

func (App) Annotations

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

func (App) Edges

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

Edges of the App.

func (App) Fields

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

Fields of the App.

func (App) Mixin

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

type Media

type Media struct {
	ent.Schema
}

func (Media) Annotations

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

func (Media) Edges

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

Edges of the Refund.

func (Media) Fields

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

Fields of the Refund.

func (Media) Mixin

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

type MediaSize

type MediaSize struct {
	Size     int64         `json:"size" bson:"size"`
	Width    int           `json:"width" bson:"width"`
	Height   int           `json:"height" bson:"height"`
	Length   int           `json:"length" bson:"length"`
	Duration time.Duration `json:"duration" bson:"duration"`
	WhRate   float64       `json:"wh_rate"` // 长宽比
}

type Operator

type Operator struct {
	ent.Schema
}

Operator holds the schema definition for the Operator entity.

func (Operator) Annotations

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

func (Operator) Edges

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

Edges of the Operator.

func (Operator) Fields

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

Fields of the Operator.

func (Operator) Mixin

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

type TimeMixin

type TimeMixin struct {
	// We embed the `mixin.Schema` to avoid
	// implementing the rest of the methods.
	mixin.Schema
}

TimeMixin implements the ent.Mixin for sharing time fields with package schemas.

func (TimeMixin) Fields

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

type User

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Annotations

func (User) Annotations() []schema.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