不要怂,就是干,撸起袖子干!

Commit c8be0be3 by JP Denford Committed by Simon Schick

docs: fix Typescript example import and table name (#11020)

1 parent 68fcd996
Showing with 2 additions and 2 deletions
...@@ -18,7 +18,7 @@ Example of a minimal TypeScript project: ...@@ -18,7 +18,7 @@ Example of a minimal TypeScript project:
```ts ```ts
import { Sequelize, Model, DataTypes, BuildOptions } from 'sequelize'; import { Sequelize, Model, DataTypes, BuildOptions } from 'sequelize';
import { HasManyGetAssociationsMixin, HasManyAddAssociationMixin, HasManyHasAssociationMixin, Association, HasManyCountAssociationsMixin, HasManyCreateAssociationMixin } from '../../lib/associations'; import { HasManyGetAssociationsMixin, HasManyAddAssociationMixin, HasManyHasAssociationMixin, Association, HasManyCountAssociationsMixin, HasManyCreateAssociationMixin } from 'sequelize';
class User extends Model { class User extends Model {
public id!: number; // Note that the `null assertion` `!` is required in strict mode. public id!: number; // Note that the `null assertion` `!` is required in strict mode.
...@@ -114,7 +114,7 @@ Address.init({ ...@@ -114,7 +114,7 @@ Address.init({
allowNull: false, allowNull: false,
} }
}, { }, {
tableName: 'users', tableName: 'address',
sequelize: sequelize, // this bit is important sequelize: sequelize, // this bit is important
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!