models for offer info

This commit is contained in:
counterweight 2025-02-22 01:45:55 +01:00
parent b0bac5e100
commit 2f092d6998
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
2 changed files with 90 additions and 0 deletions

View file

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