sanke case table names

This commit is contained in:
counterweight 2025-02-09 19:21:15 +01:00
parent 7560c86991
commit 6610b73731
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
4 changed files with 12 additions and 4 deletions

View file

@ -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
}, },
}); });

View file

@ -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;

View file

@ -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;

View file

@ -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;