📜  sequelize postgresql 模式 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:12.009000             🧑  作者: Mango

代码示例1
var City = sequelize.define('City', {
    id: {
        type: sequelize.Sequelize.INTEGER,
        primaryKey: true,
        autoIncrement: true,
        field: 'id'
    },
    name: {
        type: sequelize.Sequelize.STRING,
        field: 'name'   
    }
  }, {
    timestamps: false,
    tableName: 'cities'
    });
City.schema("public");