InferCreationAttributes - Extracts creation attribute types from a Model
Use this type to extract the attribute types that can be used when creating a model instance. By default, all attributes are optional since creation may only require a subset.
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;}
InferCreationAttributes - Extracts creation attribute types from a Model
Use this type to extract the attribute types that can be used when creating a model instance. By default, all attributes are optional since creation may only require a subset.