Create a new model from a definition. Allows defining models without using the decorator syntax.
The class of the model
The definition of the model
class NewTable extends Model { id!: number name!: string}defineModel(NewTable, { id: { primaryKey: true }, name: { unique: true },}) Copy
class NewTable extends Model { id!: number name!: string}defineModel(NewTable, { id: { primaryKey: true }, name: { unique: true },})
Create a new model from a definition. Allows defining models without using the decorator syntax.