schema

package
v0.0.0-...-7eb864d Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 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 Extra

type Extra struct {
	Key  string `json:"key"`
	Vals string `json:"vals"`
}

type Level

type Level int
const (
	Unknown Level = iota
	Low
	High
)

func (*Level) Scan

func (p *Level) Scan(val any) error

Scan tells our code how to read the enum into our type.

func (Level) String

func (p Level) String() string

func (Level) Value

func (p Level) Value() (driver.Value, error)

Value provides the DB a string from int.

func (Level) Values

func (Level) Values() []string

Values provides list valid values for Enum.

type Role

type Role string

type User

type User struct {
	ent.Schema
}

func (User) Fields

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

Jump to

Keyboard shortcuts

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