"test-unit-mariadb":"cross-env DIALECT=mariadb npm run test-unit",
"test-unit-mariadb":"cross-env DIALECT=mariadb npm run test-unit",
"test-unit-mysql":"cross-env DIALECT=mysql npm run test-unit",
"test-unit-mysql":"cross-env DIALECT=mysql npm run test-unit",
"test-unit-postgres":"cross-env DIALECT=postgres npm run test-unit",
"test-unit-postgres":"cross-env DIALECT=postgres npm run test-unit",
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
"test-unit-sqlite":"cross-env DIALECT=sqlite npm run test-unit",
"test-unit-sqlite":"cross-env DIALECT=sqlite npm run test-unit",
"test-unit-mssql":"cross-env DIALECT=mssql npm run test-unit",
"test-unit-mssql":"cross-env DIALECT=mssql npm run test-unit",
"test-unit-all":"npm run test-unit-mariadb && npm run test-unit-mysql && npm run test-unit-postgres && npm run test-unit-postgres-native && npm run test-unit-mssql && npm run test-unit-sqlite",
"test-unit-all":"npm run test-unit-mariadb && npm run test-unit-mysql && npm run test-unit-postgres && npm run test-unit-postgres-native && npm run test-unit-mssql && npm run test-unit-sqlite",
"test-integration-mariadb":"cross-env DIALECT=mariadb npm run test-integration",
"test-integration-mariadb":"cross-env DIALECT=mariadb npm run test-integration",
"test-integration-mysql":"cross-env DIALECT=mysql npm run test-integration",
"test-integration-mysql":"cross-env DIALECT=mysql npm run test-integration",
"test-integration-postgres":"cross-env DIALECT=postgres npm run test-integration",
"test-integration-postgres":"cross-env DIALECT=postgres npm run test-integration",
...
@@ -148,8 +148,8 @@
...
@@ -148,8 +148,8 @@
"test-all":"npm run test-mariadb && npm run test-mysql && npm run test-sqlite && npm run test-postgres && npm run test-postgres-native && npm run test-mssql",
"test-all":"npm run test-mariadb && npm run test-mysql && npm run test-sqlite && npm run test-postgres && npm run test-postgres-native && npm run test-mssql",
* Reference to the sequelize instance the model was initialized with
*/
publicstaticreadonlysequelize?:Sequelize;
/**
/**
* Initialize a model, representing a table in the DB, with attributes and options.
* Initialize a model, representing a table in the DB, with attributes and options.
*
*
* The table columns are defined by the hash that is given as the second argument. Each attribute of the hash represents a column. A short table definition might look like this:
* The table columns are define by the hash that is given as the second argument. Each attribute of the hash represents a column. A short table definition might look like this: