rano/db/ent/schema/role.go
2024-11-10 14:52:33 +05:30

20 lines
283 B
Go

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"),
}
}