inviting npubs

This commit is contained in:
counterweight 2025-02-09 19:55:44 +01:00
parent 9c90b75bc0
commit 56121342d6
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
6 changed files with 76 additions and 2 deletions

28
src/models/InvitedNpub.js Normal file
View file

@ -0,0 +1,28 @@
const { DataTypes } = require('sequelize');
const sequelize = require('../database');
const InvitedNpub = sequelize.define('InvitedNpub', {
uuid: {
type: DataTypes.UUID,
allowNull: false,
unique: true,
primaryKey: true
},
app_invite_uuid: {
type: DataTypes.UUID,
allowNull: false,
unique: true,
},
invited_npub: {
type: DataTypes.STRING,
allowNull: false,
},
created_at: {
type: DataTypes.DATE,
allowNull: false
}
}, {
tableName: 'invited_npub'
});
module.exports = InvitedNpub;