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;