diff options
| author | Adam Soltys <[email protected]> | 2022-11-30 12:02:06 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-30 12:02:06 -0800 |
| commit | 6d3fd0464356d22ace37ee6777f6401df8f6b559 (patch) | |
| tree | e373563eadbeea163a521754c9700a43d4c5df00 /db/models/conversions.js | |
| parent | 27dfb892f38b6895ac19e85337fa05f348f7e113 (diff) | |
| download | coinos-server-6d3fd0464356d22ace37ee6777f6401df8f6b559.tar.gz coinos-server-6d3fd0464356d22ace37ee6777f6401df8f6b559.zip | |
conversion requests and lightning payment on liquid confirmation
Diffstat (limited to 'db/models/conversions.js')
| -rw-r--r-- | db/models/conversions.js | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/db/models/conversions.js b/db/models/conversions.js new file mode 100644 index 00000000..4443128e --- /dev/null +++ b/db/models/conversions.js @@ -0,0 +1,41 @@ +import db from "$db/db"; +import { DataTypes } from '@sequelize/core'; + +const attributes = { + id: { + type: DataTypes.INTEGER(11), + allowNull: false, + defaultValue: null, + primaryKey: true, + autoIncrement: true, + comment: null, + field: "id" + }, + invoice_id: { + type: DataTypes.INTEGER(11), + allowNull: false, + defaultValue: null, + primaryKey: false, + autoIncrement: false, + comment: null, + field: "invoice_id" + }, + text: { + type: DataTypes.TEXT, + allowNull: true, + defaultValue: null, + primaryKey: false, + autoIncrement: false, + comment: null, + field: "text" + }, +}; + +const options = { + tableName: "conversions", + comment: "", + indexes: [], + timestamps: false +}; + +db["Conversion"] = db.define("conversions_model", attributes, options); |
