format project

This commit is contained in:
counterweight 2025-02-14 11:13:18 +01:00
parent 90d8e39eb3
commit c02cf8c12e
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
39 changed files with 2062 additions and 909 deletions

View file

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