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

Commit 4c1ce2b0 by Juarez Lustosa Committed by GitHub

docs(typescript): fix confusing comments (#12226)

Co-authored-by: Pedro Augusto de Paula Barbosa <papb1996@gmail.com>
1 parent 839f1a97
Showing with 3 additions and 3 deletions
...@@ -68,7 +68,7 @@ class Address extends Model { ...@@ -68,7 +68,7 @@ class Address extends Model {
Project.init({ Project.init({
id: { id: {
type: DataTypes.INTEGER.UNSIGNED, // you can omit the `new` but this is discouraged type: DataTypes.INTEGER.UNSIGNED,
autoIncrement: true, autoIncrement: true,
primaryKey: true, primaryKey: true,
}, },
...@@ -101,7 +101,7 @@ User.init({ ...@@ -101,7 +101,7 @@ User.init({
} }
}, { }, {
tableName: 'users', tableName: 'users',
sequelize: sequelize, // this bit is important sequelize: sequelize, // passing the `sequelize` instance is required
}); });
Address.init({ Address.init({
...@@ -114,7 +114,7 @@ Address.init({ ...@@ -114,7 +114,7 @@ Address.init({
} }
}, { }, {
tableName: 'address', tableName: 'address',
sequelize: sequelize, // this bit is important sequelize: sequelize, // passing the `sequelize` instance is required
}); });
// Here we associate which actually populates out pre-declared `association` static and other methods. // Here we associate which actually populates out pre-declared `association` static and other methods.
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!