Schema files are source code and should be committed. Only generated files in ent/ should be ignored.
19 lines
272 B
Go
19 lines
272 B
Go
package schema
|
|
|
|
import "entgo.io/ent"
|
|
|
|
// User holds the schema definition for the User entity.
|
|
type User struct {
|
|
ent.Schema
|
|
}
|
|
|
|
// Fields of the User.
|
|
func (User) Fields() []ent.Field {
|
|
return nil
|
|
}
|
|
|
|
// Edges of the User.
|
|
func (User) Edges() []ent.Edge {
|
|
return nil
|
|
}
|