blob: 862f2d0b6c0ffd2079e6f771b19b3b5447ec751a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package schema
import (
"entgo.io/ent"
"entgo.io/ent/schema/field"
)
// Conversation holds the schema definition for the Conversation entity.
type Conversation struct {
ent.Schema
}
// Fields of the Conversation.
func (Conversation) Fields() []ent.Field {
return []ent.Field{
field.String("id").NotEmpty(),
field.String("page_url").NotEmpty(),
}
}
// Edges of the Conversation.
func (Conversation) Edges() []ent.Edge {
return nil
}
|