This commit is contained in:
counterweight 2025-02-13 00:02:40 +01:00
parent 768efaf3a2
commit fb9832fabb
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
8 changed files with 306 additions and 92 deletions

View file

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

View file

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