nostr challenge creation works

This commit is contained in:
counterweight 2025-02-11 18:15:06 +01:00
parent 7e4adf052c
commit 9ed583ecdb
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
5 changed files with 103 additions and 14 deletions

View file

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