doc/md: add missing imports for getting-started page (#1934)

This commit is contained in:
s-takehana
2021-09-11 18:08:26 +09:00
committed by GitHub
parent 0864659844
commit 4497656078

View File

@@ -49,6 +49,8 @@ The command above will generate the schema for `User` under `<project>/ent/schem
package schema
import "entgo.io/ent"
// User holds the schema definition for the User entity.
type User struct {
ent.Schema
@@ -72,6 +74,11 @@ Add 2 fields to the `User` schema:
package schema
import (
"entgo.io/ent"
"entgo.io/ent/schema/field"
)
// Fields of the User.
func (User) Fields() []ent.Field {
return []ent.Field{