sanke case table names
This commit is contained in:
parent
7560c86991
commit
6610b73731
4 changed files with 12 additions and 4 deletions
|
|
@ -12,7 +12,9 @@ const sequelize = new Sequelize({
|
||||||
password: process.env.POSTGRES_PASSWORD,
|
password: process.env.POSTGRES_PASSWORD,
|
||||||
define: {
|
define: {
|
||||||
timestamps: false,
|
timestamps: false,
|
||||||
freezeTableName: true
|
freezeTableName: true,
|
||||||
|
underscored: true,
|
||||||
|
quoteIdentifiers: false
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,9 @@ const AppInvite = sequelize.define('AppInvite', {
|
||||||
created_at: {
|
created_at: {
|
||||||
type: DataTypes.DATE,
|
type: DataTypes.DATE,
|
||||||
allowNull: false
|
allowNull: false
|
||||||
},
|
}
|
||||||
|
}, {
|
||||||
|
tableName: 'app_invite'
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = AppInvite;
|
module.exports = AppInvite;
|
||||||
|
|
@ -11,7 +11,9 @@ const Session = sequelize.define('Session', {
|
||||||
created_at: {
|
created_at: {
|
||||||
type: DataTypes.DATE,
|
type: DataTypes.DATE,
|
||||||
allowNull: false
|
allowNull: false
|
||||||
},
|
}
|
||||||
|
}, {
|
||||||
|
tableName: 'session'
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = Session;
|
module.exports = Session;
|
||||||
|
|
@ -19,7 +19,9 @@ const SessionNpubbed = sequelize.define('SessionNpubbed', {
|
||||||
created_at: {
|
created_at: {
|
||||||
type: DataTypes.DATE,
|
type: DataTypes.DATE,
|
||||||
allowNull: false
|
allowNull: false
|
||||||
},
|
}
|
||||||
|
}, {
|
||||||
|
tableName: 'session_npubbed'
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = SessionNpubbed;
|
module.exports = SessionNpubbed;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue