storing contact details works

This commit is contained in:
counterweight 2025-02-14 01:32:03 +01:00
parent 00fc6bb258
commit 6b52d06b3e
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
10 changed files with 138 additions and 15 deletions

View file

@ -0,0 +1,27 @@
const { DataTypes } = require('sequelize');
const sequelize = require('../database');
const ContactDetailsSet = sequelize.define('ContactDetailsSet', {
uuid: {
type: DataTypes.UUID,
allowNull: false,
unique: true,
primaryKey: true
},
public_key: {
type: DataTypes.STRING,
allowNull: false
},
encrypted_contact_details: {
type: DataTypes.TEXT,
allowNull: false
},
created_at: {
type: DataTypes.DATE,
allowNull: false
}
}, {
tableName: 'contact_details_set'
});
module.exports = ContactDetailsSet;