InferAttributes - Extracts attribute types from a Model
Use this type to extract the attribute types when defining a Model class. This type should be used as the first type parameter to Model.
export class User extends Model<InferAttributes<User>, InferCreationAttributes<User>> { declare id: CreationOptional<number>; declare name: string;} Copy
export class User extends Model<InferAttributes<User>, InferCreationAttributes<User>> { declare id: CreationOptional<number>; declare name: string;}
InferAttributes - Extracts attribute types from a Model
Use this type to extract the attribute types when defining a Model class. This type should be used as the first type parameter to Model.