postgrelize / ModelAttributes
Type Alias: ModelAttributes<M, TAttributes> ​
ModelAttributes<
M,TAttributes> = { readonly [name in keyof TAttributes]: DataTypeInput | AttributeOptions<M> }
Defined in: src/model/attribute-options.ts:141
Attributes passed to Model.init / sequelize.define: a type or full column options per attribute. M is the model instance type of this in get / set; with TAttributes (v6 shape) every attribute of that type must be defined.
Type Parameters ​
M ​
TAttributes ​
TAttributes = any