mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
fix comment error
This commit is contained in:
@@ -53,19 +53,19 @@ import (
|
||||
"github.com/facebookincubator/ent/schema/edge"
|
||||
)
|
||||
|
||||
// User schema.
|
||||
// Pet holds the schema definition for the Pet entity.
|
||||
type Pet struct {
|
||||
ent.Schema
|
||||
}
|
||||
|
||||
// Fields of the user.
|
||||
// Fields of the Pet.
|
||||
func (Pet) Fields() []ent.Field {
|
||||
return []ent.Field{
|
||||
// ...
|
||||
}
|
||||
}
|
||||
|
||||
// Edges of the user.
|
||||
// Edges of the Pet.
|
||||
func (Pet) Edges() []ent.Edge {
|
||||
return []ent.Edge{
|
||||
edge.From("owner", User.Type).
|
||||
|
||||
Reference in New Issue
Block a user