schema

package
v0.0.0-...-9a0b9f1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 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 BaseMixin

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

BaseMixin : this will be reused in all the entity in this application

func (BaseMixin) Fields

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

Fields : Here we will declare all the common Fields for the this application

type Role

type Role struct {
	ent.Schema
}

Role hold the roles information for members

func (Role) Edges

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

Edges of the User.

func (Role) Fields

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

Fields of the User.

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