From 57781690a0613afef7a083da2c139bccd5626e77 Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Mon, 17 Jan 2022 12:14:33 -0600 Subject: [PATCH] Add payment schema --- backend/models/owner.js | 8 +++++++- backend/models/payment.js | 10 ++++++++++ src/app/scan/scan.component.css | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 backend/models/payment.js diff --git a/backend/models/owner.js b/backend/models/owner.js index 040d7f5..0eae770 100644 --- a/backend/models/owner.js +++ b/backend/models/owner.js @@ -7,7 +7,13 @@ const ownerSchema = mongoose.Schema({ tax: {type: Boolean, required: true, default: false}, taxValue: {type: Number }, vat: {type: Boolean, required:true, default: false}, - vatValue: {type: Number } + vatValue: {type: Number }, + email: {type: String, required:true}, + street: {type: String, required:true}, + city: {type: String, required: true}, + state: {type: String, required: true}, + postal: {type: String, required: true}, + phone: {type: String, required: true} }); module.exports = mongoose.model('Owner', ownerSchema); diff --git a/backend/models/payment.js b/backend/models/payment.js new file mode 100644 index 0000000..f5517db --- /dev/null +++ b/backend/models/payment.js @@ -0,0 +1,10 @@ +const mongoose = require('mongoose'); + +const paymentSchema = mongoose.Schema({ + address: {type: String, required: true}, + blocktime: {type: Number, required: true}, + expiration: {type: Date, required: true}, + amount: {type: Number, required: true} +}); + +module.exports = mongoose.model('Payment', paymentSchema); diff --git a/src/app/scan/scan.component.css b/src/app/scan/scan.component.css index 77dd87c..9bc9dd3 100644 --- a/src/app/scan/scan.component.css +++ b/src/app/scan/scan.component.css @@ -1,5 +1,5 @@ .text { - font-family: 'Saira Semi Condensed', sans-serif; + font-family: 'Spartan', sans-serif; } .mat-dialog-title{ line-height: 20px;