schema

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Fields

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

Fields of the User.

func (User) Mixin

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

Mixin of the User.

type VersionMixin

type VersionMixin struct {
	mixin.Schema
}

VersionMixin provides an optimistic concurrency control mechanism using a "version" field.

func (VersionMixin) Fields

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

Fields of the VersionMixin.

Jump to

Keyboard shortcuts

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