rano/db/ent/schema/role.go

20 lines
283 B
Go
Raw Normal View History

2024-11-10 09:22:33 +00:00
package schema
import (
"entgo.io/ent"
"entgo.io/ent/schema/field"
)
// Role holds the schema definition for the Role entity.
type Role struct {
ent.Schema
}
// Fields of the Role.
func (Role) Fields() []ent.Field {
return []ent.Field{
fieldID,
field.String("name"),
}
}