Draft variant of a persisted DB element: the same shape without the
database-assigned id.
Represents a record built in memory but not yet inserted. The database
assigns id on insert, producing the full persisted type. Use this for
insert inputs so that persisted reads keep a guaranteed, non-optional id.
Type Parameters
Textends{id:number}
A persisted element type whose id is a required number
Draft variant of a persisted DB element: the same shape without the database-assigned
id.Represents a record built in memory but not yet inserted. The database assigns
idon insert, producing the full persisted type. Use this for insert inputs so that persisted reads keep a guaranteed, non-optionalid.