func (WorkOrder) Fields() []ent.Field {
	return []ent.Field{
		field.String("name").NotEmpty(),
		field.String("status").
			Default("PLANNED"),
		field.String("priority").
			Default("NONE"),
		field.Text("description").
			Optional(),
		field.Time("install_date").
			Optional(),
		field.Time("creation_date"),
		field.Int("index").
			Optional(),
		field.Time("close_date").
			Optional(),
	}
}
// Fields returns work order fields.
Fields returns work order fields.
// Fields returns work order fields .
func (WorkOrder) Fields() []ent.Field {
	return []ent.Field{
		field.String("name").NotEmpty(),
		field.String("status").
			Default("PLANNED"),
		field.String("priority").
			Default("NONE"),
		field.Text("description").
			Optional(),
		field.Time("install_date").
			Optional(),
		field.Time("creation_date"),
		field.Int("index").
			Optional(),
		field.Time("close_date").
			Optional(),
	}
}
func ( WorkOrder ) Fields ( ) [ ] ent . Field { return [ ] ent . Field { field . String ( " " ) . NotEmpty ( ) , field . String ( " " ) . Default ( " " ) , field . String ( " " ) . Default ( " " ) , field . Text ( " " ) . Optional ( ) , field . Time ( " " ) . Optional ( ) , field . Time ( " " ) , field . Int ( " " ) . Optional ( ) , field . Time ( " " ) . Optional ( ) , } }
Fields returns work order fields.
Fields returns work order fields .