lol that worked somehow
This commit is contained in:
parent
8ba6472525
commit
966fde1111
6 changed files with 51 additions and 42 deletions
|
|
@ -1,7 +1,7 @@
|
|||
const { DataTypes } = require('sequelize');
|
||||
const sequelize = require('../database');
|
||||
|
||||
const InvitedNpub = sequelize.define('InvitedNpub', {
|
||||
const PublicKeyInvited = sequelize.define('PublicKeyInvited', {
|
||||
uuid: {
|
||||
type: DataTypes.UUID,
|
||||
allowNull: false,
|
||||
|
|
@ -13,7 +13,7 @@ const InvitedNpub = sequelize.define('InvitedNpub', {
|
|||
allowNull: false,
|
||||
unique: true,
|
||||
},
|
||||
invited_npub: {
|
||||
public_key_invited: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: false,
|
||||
},
|
||||
|
|
@ -22,7 +22,7 @@ const InvitedNpub = sequelize.define('InvitedNpub', {
|
|||
allowNull: false
|
||||
}
|
||||
}, {
|
||||
tableName: 'invited_npub'
|
||||
tableName: 'public_key_invited'
|
||||
});
|
||||
|
||||
module.exports = InvitedNpub;
|
||||
module.exports = PublicKeyInvited;
|
||||
Loading…
Add table
Add a link
Reference in a new issue