entc/gen: skip checking required fields with db-based default values (#3204)

This commit is contained in:
Ariel Mashraki
2023-01-02 22:59:27 +02:00
committed by GitHub
parent 41bf915604
commit 542f36d4ab
12 changed files with 298 additions and 9 deletions

View File

@@ -225,6 +225,10 @@ func (Blog) Fields() []ent.Field {
SchemaType(map[string]string{
dialect.Postgres: postgres.TypeSerial,
}),
field.Int("oid").
SchemaType(map[string]string{
dialect.Postgres: postgres.TypeSerial,
}),
}
}