schema

package
v0.0.0-...-102be31 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateTimeMixin

type CreateTimeMixin struct{ mixin.Schema }

CreateTimeMixin adds created at time field.

func (CreateTimeMixin) Fields

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

Fields of the creation time mixin.

type ShortLink struct {
	ent.Schema
}

ShortLink holds the schema definition for the ShortLink entity.

func (ShortLink) Fields

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

Fields of the ShortLink.

func (ShortLink) Indexes

func (ShortLink) Indexes() []ent.Index

Indexes of the ShortLink

func (ShortLink) Mixin

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

Mixin of the ShortLink.

type TimeMixin

type TimeMixin struct{ mixin.Schema }

TimeMixin composes create/update time mixin.

func (TimeMixin) Fields

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

Fields of the time mixin.

type UpdateTimeMixin

type UpdateTimeMixin struct{ mixin.Schema }

UpdateTimeMixin adds updated at time field.

func (UpdateTimeMixin) Fields

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

Fields of the update time mixin.

Jump to

Keyboard shortcuts

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