create offer stitched with backend
This commit is contained in:
parent
4eef0a57e0
commit
b430b42b60
5 changed files with 37 additions and 14 deletions
27
src/models/OfferCreated.js
Normal file
27
src/models/OfferCreated.js
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue