Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoIncrementId ¶
func (AutoIncrementId) Fields ¶
func (AutoIncrementId) Fields() []ent.Field
func (AutoIncrementId) Indexs ¶
func (AutoIncrementId) Indexs() []ent.Index
type CreateTime ¶
func (CreateTime) Fields ¶
func (CreateTime) Fields() []ent.Field
type DeleteTime ¶
func (DeleteTime) Fields ¶
func (DeleteTime) Fields() []ent.Field
type SwitchStatus ¶ added in v1.0.1
func (SwitchStatus) Fields ¶ added in v1.0.1
func (SwitchStatus) Fields() []ent.Field
在PostgreSQL下,还需要为此创建一个Type,否则无法使用。
DROP TYPE IF EXISTS switch_status CASCADE; CREATE TYPE switch_status AS ENUM (
'OFF', 'ON' );
type UpdateTime ¶
func (UpdateTime) Fields ¶
func (UpdateTime) Fields() []ent.Field
Click to show internal directories.
Click to hide internal directories.