nostr challenge creation works
This commit is contained in:
parent
7e4adf052c
commit
9ed583ecdb
5 changed files with 103 additions and 14 deletions
23
src/models/NostrChallengeCreated.js
Normal file
23
src/models/NostrChallengeCreated.js
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue