Documentation ¶
Overview ¶
Package mixin is the mixin package
Package mixin is the mixin package
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ZeroTime = time.Time{}
ZeroTime represents the zero value for time.Time.
Functions ¶
func FieldID ¶ added in v0.0.9
FieldID returns an optional string field with a maximum length of 36 characters.
func FieldIndex ¶ added in v0.0.9
FieldIndex returns a unique integer field.
Types ¶
type CreateSchema ¶ added in v0.0.8
CreateSchema schema to include control and time fields.
func (CreateSchema) Fields ¶ added in v0.0.8
func (CreateSchema) Fields() []ent.Field
Fields of the mixin.
func (CreateSchema) Indexes ¶ added in v0.0.8
func (CreateSchema) Indexes() []ent.Index
Indexes of the mixin.
type CreateUpdateSchema ¶ added in v0.0.8
CreateUpdateSchema schema to include control and time fields.
func (CreateUpdateSchema) Fields ¶ added in v0.0.8
func (CreateUpdateSchema) Fields() []ent.Field
Fields of the mixin.
func (CreateUpdateSchema) Indexes ¶ added in v0.0.8
func (CreateUpdateSchema) Indexes() []ent.Index
Indexes of the mixin.
type DeleteSchema ¶ added in v0.0.8
DeleteSchema schema to include control and time fields.
func (DeleteSchema) Fields ¶ added in v0.0.8
func (DeleteSchema) Fields() []ent.Field
Fields of the Model.
func (DeleteSchema) Indexes ¶ added in v0.0.8
func (DeleteSchema) Indexes() []ent.Index
Indexes of the mixin.
type SoftDeleteSchema ¶
type SoftDeleteSchema = DeleteSchema
SoftDeleteSchema schema to include control and time fields.
type UpdateSchema ¶ added in v0.0.8
UpdateSchema schema to include control and time fields.
func (UpdateSchema) Fields ¶ added in v0.0.8
func (UpdateSchema) Fields() []ent.Field
Fields of the mixin.
func (UpdateSchema) Indexes ¶ added in v0.0.8
func (UpdateSchema) Indexes() []ent.Index
Indexes of the mixin.