Add payment schema
This commit is contained in:
parent
18f1667a00
commit
57781690a0
3 changed files with 18 additions and 2 deletions
|
@ -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);
|
||||
|
|
10
backend/models/payment.js
Normal file
10
backend/models/payment.js
Normal file
|
@ -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);
|
|
@ -1,5 +1,5 @@
|
|||
.text {
|
||||
font-family: 'Saira Semi Condensed', sans-serif;
|
||||
font-family: 'Spartan', sans-serif;
|
||||
}
|
||||
.mat-dialog-title{
|
||||
line-height: 20px;
|
||||
|
|
Loading…
Reference in a new issue