mixins

package
v0.1.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceMixin

type ResourceMixin struct {
	mixin.Schema
}

ResourceMixin is an Ent mixin that adds the resource field to an entity.

func (ResourceMixin) Fields

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

Fields returns the fields of the ResourceMixin.

* id: The unique identifier of the resource. * state: The state of the resource. * created_at: The time when the resource was created. * updated_at: The time when the resource was last updated.

Jump to

Keyboard shortcuts

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