schema

package
v0.0.0-...-a9081ec Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package schema contains the schema definition for the ent package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	ent.Schema
}

Admin holds the schema definition for the Admin entity.

func (Admin) Edges

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

Edges of the Admin.

func (Admin) Fields

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

Fields of the Admin.

func (Admin) Mixin

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

Mixin is used to set specific pattern of common schema

type Student

type Student struct {
	ent.Schema
}

Student holds the schema definition for the Student entity.

func (Student) Edges

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

Edges of the Student.

func (Student) Fields

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

Fields of the Student.

func (Student) Mixin

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

Mixin is used to set specific pattern of common schema

Directories

Path Synopsis
mixin
timemixin
Package timemixin implements the ent.Mixin about time fields.
Package timemixin implements the ent.Mixin about time fields.

Jump to

Keyboard shortcuts

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