mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: skip checking required fields with db-based default values (#3204)
This commit is contained in:
@@ -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,
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user