func (WorkOrder) Edges() []ent.Edge {
	return []ent.Edge{
		edge.To("type", WorkOrderType.Type).
			Unique().
			StructTag(`gqlgen:"workOrderType"`),
		edge.To("template", WorkOrderTemplate.Type).
			Unique().
			StructTag(`gqlgen:"workOrderTemplate"`),
		edge.From("equipment", Equipment.Type).
			Ref("work_order"),
		edge.From("links", Link.Type).
			Ref("work_order"),
		edge.To("files", File.Type),
		edge.To("hyperlinks", Hyperlink.Type).
			StructTag(`gqlgen:"hyperlinks"`),
		edge.To("location", Location.Type).
			Unique().
			StructTag(`gqlgen:"location"`),
		edge.To("comments", Comment.Type).
			StructTag(`gqlgen:"comments"`),
		edge.To("activities", Activity.Type).
			StructTag(`gqlgen:"activities"`),
		edge.To("properties", Property.Type).
			StructTag(`gqlgen:"properties"`),
		edge.To("check_list_categories", CheckListCategory.Type).
			StructTag(`gqlgen:"checkListCategories"`),
		edge.From("project", Project.Type).
			Ref("work_orders").
			Unique().
			StructTag(`gqlgen:"project"`),
		edge.To("owner", User.Type).
			Required().
			Unique().
			StructTag(`gqlgen:"owner"`),
		edge.To("assignee", User.Type).
			StructTag(`gqlgen:"assignedTo"`).
			Unique(),
	}
}
// Edges returns work order edges.
Edges returns work order edges.
// Edges returns work order edges .
func (WorkOrder) Edges() []ent.Edge {
	return []ent.Edge{
		edge.To("type", WorkOrderType.Type).
			Unique().
			StructTag(`gqlgen:"workOrderType"`),
		edge.To("template", WorkOrderTemplate.Type).
			Unique().
			StructTag(`gqlgen:"workOrderTemplate"`),
		edge.From("equipment", Equipment.Type).
			Ref("work_order"),
		edge.From("links", Link.Type).
			Ref("work_order"),
		edge.To("files", File.Type),
		edge.To("hyperlinks", Hyperlink.Type).
			StructTag(`gqlgen:"hyperlinks"`),
		edge.To("location", Location.Type).
			Unique().
			StructTag(`gqlgen:"location"`),
		edge.To("comments", Comment.Type).
			StructTag(`gqlgen:"comments"`),
		edge.To("activities", Activity.Type).
			StructTag(`gqlgen:"activities"`),
		edge.To("properties", Property.Type).
			StructTag(`gqlgen:"properties"`),
		edge.To("check_list_categories", CheckListCategory.Type).
			StructTag(`gqlgen:"checkListCategories"`),
		edge.From("project", Project.Type).
			Ref("work_orders").
			Unique().
			StructTag(`gqlgen:"project"`),
		edge.To("owner", User.Type).
			Required().
			Unique().
			StructTag(`gqlgen:"owner"`),
		edge.To("assignee", User.Type).
			StructTag(`gqlgen:"assignedTo"`).
			Unique(),
	}
}
func ( WorkOrder ) Edges ( ) [ ] ent . Edge { return [ ] ent . Edge { edge . To ( " " , WorkOrderType . Type ) . Unique ( ) . StructTag ( `gqlgen:"workOrderType"` ) , edge . To ( " " , WorkOrderTemplate . Type ) . Unique ( ) . StructTag ( `gqlgen:"workOrderTemplate"` ) , edge . From ( " " , Equipment . Type ) . Ref ( " " ) , edge . From ( " " , Link . Type ) . Ref ( " " ) , edge . To ( " " , File . Type ) , edge . To ( " " , Hyperlink . Type ) . StructTag ( `gqlgen:"hyperlinks"` ) , edge . To ( " " , Location . Type ) . Unique ( ) . StructTag ( `gqlgen:"location"` ) , edge . To ( " " , Comment . Type ) . StructTag ( `gqlgen:"comments"` ) , edge . To ( " " , Activity . Type ) . StructTag ( `gqlgen:"activities"` ) , edge . To ( " " , Property . Type ) . StructTag ( `gqlgen:"properties"` ) , edge . To ( " " , CheckListCategory . Type ) . StructTag ( `gqlgen:"checkListCategories"` ) , edge . From ( " " , Project . Type ) . Ref ( " " ) . Unique ( ) . StructTag ( `gqlgen:"project"` ) , edge . To ( " " , User . Type ) . Required ( ) . Unique ( ) . StructTag ( `gqlgen:"owner"` ) , edge . To ( " " , User . Type ) . StructTag ( `gqlgen:"assignedTo"` ) . Unique ( ) , } }
Edges returns work order edges.
Edges returns work order edges .