zgo/backend/models/owner.js

26 lines
915 B
JavaScript
Raw Permalink Normal View History

2022-04-11 14:48:34 +00:00
const mongoose = require('mongoose');
const ownerSchema = mongoose.Schema({
address: {type: String, required:true, unique:true},
name: {type: String, required:true},
currency: {type: String, required:true, default: 'usd'},
tax: {type: Boolean, required: true, default: false},
taxValue: {type: Number },
vat: {type: Boolean, required:true, default: false},
vatValue: {type: Number },
first: {type: String, required:true},
last: {type: String, required:true},
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},
website: {type: String},
Squashed commit of the following: commit 68d03b6602872b648b43b4f22f643b223a1d7586 Author: Rene Vergara <rene@vergara.network> Date: Tue Apr 19 15:36:30 2022 -0500 Fix #2 commit d4be174b2dd0c3dac209ab9cf90bf24af11db573 Author: Rene Vergara <rene@vergara.network> Date: Mon Apr 11 09:31:08 2022 -0500 Add MIT license commit 6dddceff55410963383db5e9c3385cad41e904dd Author: Rene Vergara <rene@vergara.network> Date: Sun Apr 10 09:41:16 2022 -0500 Update README commit 8e98bff2ae5b7e2ba1cb68a72fba1b36e7a67b52 Author: Rene Vergara <rene@vergara.network> Date: Fri Apr 8 18:23:13 2022 -0500 Implement receipt QR code commit 934e28446c56548ed86cb67cf0b36c4a7844793a Author: Rene Vergara <rene@vergara.network> Date: Fri Mar 25 18:57:02 2022 -0500 Begin receipt component commit 4f0253e6b222ed636701df4c74d89b9c6bd65237 Author: Rene Vergara <rene@vergara.network> Date: Mon Mar 7 14:53:10 2022 -0600 Enable zats on display commit 42dbd88e2819e4cd02f4df11b92834c9e9d97d7f Author: Rene Vergara <rene@vergara.network> Date: Mon Mar 7 13:46:00 2022 -0600 Enable front end setting for zats commit 29a90b86140bf5c00e02831fc966b5aed6784832 Author: Rene Vergara <rene@vergara.network> Date: Mon Mar 7 13:45:45 2022 -0600 Fix bug for payment read commit 8130856d8fca04d58f7daab56c1092a62b5eb80d Author: Rene Vergara <rene@vergara.network> Date: Mon Mar 7 11:14:29 2022 -0600 Add zats setting parameter to backend commit 43c34958f1553686d8750e2c4cfa3f644a87993a Author: Rene Vergara <rene@vergara.network> Date: Tue Feb 8 13:38:29 2022 -0600 Improve biz form arrangement commit 0ca495a81151593f4a51ed1d46550976f20aefd1 Author: Rene Vergara <rene@vergara.network> Date: Wed Feb 2 12:30:05 2022 -0600 Update app version commit 770852640c26a1b862718e22e599b2350636dd92 Author: Rene Vergara <rene@vergara.network> Date: Wed Feb 2 12:26:58 2022 -0600 Fix bug of detecting payment commit a42f04cd4a205dde30a3cddb07bba8b100deb6d1 Author: Rene Vergara <rene@vergara.network> Date: Wed Feb 2 12:26:21 2022 -0600 Fix bug when deleting the last item commit a22dc1aac32cecf294c853d2226fd22d08ccaf51 Author: Rene Vergara <rene@vergara.network> Date: Wed Feb 2 10:36:29 2022 -0600 Update app version commit f33a920d2967f7bce4def2e1f66a9965f90d75fd Author: Rene Vergara <rene@vergara.network> Date: Tue Feb 1 12:56:02 2022 -0600 Refactor the confirm dialog to re-use commit 372c7eacf5f1f91fad165b66b2a372b6dc7689f9 Author: Rene Vergara <rene@vergara.network> Date: Tue Feb 1 12:04:16 2022 -0600 Enable logout commit ba631ebf24a804cd71bcc6c4f1bae0b48ce79f65 Author: Rene Vergara <rene@vergara.network> Date: Mon Jan 31 15:32:46 2022 -0600 Fix bug on order saving commit d61a1169fdb7efc4e47ec55554dcdadb63e72779 Author: Rene Vergara <rene@vergara.network> Date: Fri Jan 28 15:38:27 2022 -0600 Update title look of Cancel component commit 5c36be8fc7bff34ada91fbb3334888955bffd1c4 Author: Rene Vergara <rene@vergara.network> Date: Fri Jan 28 15:37:41 2022 -0600 Update look of Terms of Use commit 5e5089af437aa7c3764ec720bc36a4ed3f2aaafd Author: Rene Vergara <rene@vergara.network> Date: Fri Jan 28 14:03:35 2022 -0600 Add business contact name commit 031c4f8a87dd9b9ddf42908d68e1713dde74f1c0 Author: Rene Vergara <rene@vergara.network> Date: Fri Jan 28 14:03:05 2022 -0600 Add Terms of Use commit 8a165eefb6dce94b9cd9cb8aec6ad4a889e9c79b Author: Rene Vergara <rene@vergara.network> Date: Tue Jan 25 16:41:23 2022 -0600 Look and feel improvements for wide screens commit aaed1441515567088c18769d7a0ffb680e50b1a3 Author: Rene Vergara <rene@vergara.network> Date: Tue Jan 25 15:54:31 2022 -0600 Update font commit 323ffcc50b12db1fa22f31faf4cd81e7c25b56e5 Author: Rene Vergara <rene@vergara.network> Date: Tue Jan 25 15:20:01 2022 -0600 Implement payment checks in API commit d8380ec33f5ea44c1e31ea9d5db4865fa4b5b648 Author: Rene Vergara <rene@vergara.network> Date: Sat Jan 22 07:50:39 2022 -0600 Update modules commit f5a14bf7d7136b86d9e4b5788daf904038b69bce Author: Rene Vergara <rene@vergara.network> Date: Sat Jan 22 07:49:22 2022 -0600 Implement biz info form commit 5f80b1d9123ff29e4e6317a9d7fa92cd24a0526c Author: Rene Vergara <rene@vergara.network> Date: Wed Jan 19 14:50:00 2022 -0600 Implement Country search commit 881bb1baf199d4cd66670eb90799936048f91103 Author: Rene Vergara <rene@vergara.network> Date: Wed Jan 19 10:26:25 2022 -0600 Add country field commit ea8febe3681e3a9fb7a5bc8026231b002b4435cf Author: Rene Vergara <rene@vergara.network> Date: Tue Jan 18 16:40:50 2022 -0600 Create component for business info commit 0044f25edb2dc30ff6f0bc13dac188a4db1fe540 Author: Rene Vergara <rene@vergara.network> Date: Tue Jan 18 16:40:36 2022 -0600 Modify login routing commit 36242cffb960dcc6372330424e74bd7c9dcee5bd Author: Rene Vergara <rene@vergara.network> Date: Tue Jan 18 16:40:20 2022 -0600 Add website field to owner commit 57d06873f5dc80e5ce73b120e9996310104c29f6 Author: Rene Vergara <rene@vergara.network> Date: Mon Jan 17 14:49:21 2022 -0600 Change auth guard to check for payment commit c40ac0fd44bc8a16a2fd0b026dbf118e29c87fee Author: Rene Vergara <rene@vergara.network> Date: Mon Jan 17 14:49:08 2022 -0600 Add new fields for Owner commit c9f84f1a2879b48eed8d36b56c500312fdf5f4b6 Author: Rene Vergara <rene@vergara.network> Date: Mon Jan 17 13:39:26 2022 -0600 Update API server to process logins and pays commit 57781690a0613afef7a083da2c139bccd5626e77 Author: Rene Vergara <rene@vergara.network> Date: Mon Jan 17 12:14:33 2022 -0600 Add payment schema commit 18f1667a00a6208006cec659bc3913aef1f45a9b Author: Rene Vergara <rene@vergara.network> Date: Sat Jan 15 07:59:25 2022 -0600 Add new font and update login commit 1134f1760c82b6dcb2f5320272b02079461be4a4 Author: Rene Vergara <rene@vergara.network> Date: Sat Jan 15 07:58:56 2022 -0600 Allow for memo amount in scan component commit f6a41f38930d9873b9747f0f2de02416b06f8dc4 Merge: 47f2903 55dc475 Author: Rene Vergara <rene@vergara.network> Date: Fri Jan 14 16:17:41 2022 -0600 Merge branch 'master' into dev commit 47f2903d982d32c14d10373eed84b9368417e998 Author: Rene Vergara <rene@vergara.network> Date: Fri Jan 14 16:11:50 2022 -0600 Change look of login commit cfd3d0852f09b2b1befa37e2821dda1699ce4715 Author: Rene Vergara <rene@vergara.network> Date: Fri Jan 14 15:47:31 2022 -0600 Add copyright and CoinGecko attribution commit 55dc475a6a53b8afa59df09ad01eb8372a8a8850 Author: Rene Vergara <rene@vergara.network> Date: Tue Nov 23 14:44:46 2021 -0600 Correct item create form commit 2596c3628969fd7f1ea90ac35819a51e067b4e94 Author: Rene Vergara <rene@vergara.network> Date: Mon Nov 22 14:37:45 2021 -0600 Implement flexible currency commit 078916f92de3c863efb21ca3657806f408df4105 Author: Rene Vergara <rene@vergara.network> Date: Thu Nov 18 16:49:34 2021 -0600 Change stepper to not editable commit c1c60a4e2084eba7e0fea992f43cc3a3d7fb32e0 Author: Rene Vergara <rene@vergara.network> Date: Thu Nov 18 16:40:19 2021 -0600 Improved wording for login commit 2f610c8f7f339656d7eac1f53579b732f88219f7 Author: Rene Vergara <rene@vergara.network> Date: Thu Nov 18 16:38:25 2021 -0600 Implement stepper for login commit e5ff05d814f4824a1a53cbc870ab1f7aaff08d38 Author: Rene Vergara <rene@vergara.network> Date: Thu Nov 18 09:57:22 2021 -0600 Enhance UI look and feel commit 2265ab6512bbbb1caddc002bc5c66d21800d1f8f Merge: b48f10f fb46c62 Author: Rene Vergara <rene@vergara.network> Date: Wed Nov 17 16:07:26 2021 -0600 Merge branch 'master' into dev commit b48f10fe03a894d59ef372290c851d15d07cf6bb Author: Rene Vergara <rene@vergara.network> Date: Wed Nov 17 16:03:46 2021 -0600 Enhance login screen commit ed46fd9b234e31b254d3ca196914899b2d6a02e3 Author: Rene Vergara <rene@vergara.network> Date: Wed Nov 17 14:23:24 2021 -0600 upgrade Angular commit 0871a73cc25b03be810f9a3b86aedd5020596d03 Author: Rene Vergara <rene@vergara.network> Date: Wed Nov 17 14:14:34 2021 -0600 Add new logo files commit fb46c626ec77cfb10219998902e6e0a5dcdb3e63 Author: Rene Vergara <rene@vergara.network> Date: Sat Nov 13 07:05:54 2021 -0600 Correct wallet link commit 8e3c773d1e6e2167dbccbdbd602bc02616044e0b Author: Rene Vergara <rene@vergara.network> Date: Sat Nov 13 06:51:20 2021 -0600 Adjust look of scan component commit 5c043b1e0e46b15ba215f47fc2d5c32560a4df51 Author: Rene Vergara <rene@vergara.network> Date: Sat Nov 13 06:34:28 2021 -0600 Reduced required confirmations to 6 commit 01dcdaecd095e30e75f86d3a9100388a7c8b5518 Author: Rene Vergara <rene@vergara.network> Date: Sat Nov 13 06:33:51 2021 -0600 Ensure all txs are logged to DB Not just the ones with the proper memo commit 1336cc200964ff7ea7c553f86c6187bb62b75c7c Author: Rene Vergara <rene@vergara.network> Date: Fri Nov 12 11:16:21 2021 -0600 Add link for wallets on the same device commit f3e8bf22e334c3a2882630a5063f4548f40ab483 Author: Rene Vergara <rene@vergara.network> Date: Thu Nov 11 13:52:07 2021 -0600 Fix some issues tracking unconfirmed txs commit 997276638f5747058e9f972d7040627e068fabe3 Author: Rene Vergara <rene@vergara.network> Date: Thu Nov 11 09:24:43 2021 -0600 update gitignore commit 7145a437b43820b59decf933cc5d26dd44a2838a Author: Rene Vergara <rene@vergara.network> Date: Thu Nov 11 09:18:38 2021 -0600 Adjust visuals for small screens commit b66650d34dd7ada3fa01dc96137842b83c931cdb Author: Rene Vergara <rene@vergara.network> Date: Wed Nov 10 09:25:26 2021 -0600 Implement session length selector commit 648324ba5f5af254db937973c11f8a2d5ff2db6f Author: Rene Vergara <rene@vergara.network> Date: Tue Nov 9 15:00:01 2021 -0600 Implement monitoring of unconfirmed logins commit d05292b365dc59ae4115b0c02f75c67423b71a07 Author: Rene Vergara <rene@vergara.network> Date: Tue Nov 9 12:39:16 2021 -0600 Add API authentication commit dacb8dbafb8eb984650cea25bb63c651b5f7ed6e Author: Rene Vergara <rene@vergara.network> Date: Mon Nov 8 14:37:26 2021 -0600 Parametrize backend url commit f33666bd0e393a584bd201a846937fce278d7079 Author: Rene Vergara <rene@vergara.network> Date: Mon Nov 8 13:09:16 2021 -0600 Implement backend https commit 0a4dda4d73aa904120fde28da9816fb7052bd681 Author: Rene Vergara <rene@vergara.network> Date: Sat Nov 6 07:14:27 2021 -0500 Adjust session expiration commit 99bec8f73962c5f9d9599af36eb26828d9f6a4f7 Author: Rene Vergara <rene@vergara.network> Date: Fri Nov 5 16:32:01 2021 -0500 Implement list of orders Also corrects font in css files commit b88fe7fc20da0bdffac6dc0c6fdfee4632541f7c Author: Rene Vergara <rene@vergara.network> Date: Fri Nov 5 09:53:50 2021 -0500 Implement link alternative to QR code commit 172f4da6b1eae392c8baf704f105a54cb99e9fd0 Author: Rene Vergara <rene@vergara.network> Date: Fri Nov 5 09:53:29 2021 -0500 Update main view to 'shop' commit 4c5d4c311f9952b550ba5e163f0124354e2337f9 Author: Rene Vergara <rene@vergara.network> Date: Fri Nov 5 09:30:35 2021 -0500 Add totals and price to order storage commit 7e5210723e737683d8f968ffea79906719d19dac Author: Rene Vergara <rene@vergara.network> Date: Fri Nov 5 08:21:19 2021 -0500 Add ZEC price to order commit 971fd7ca41bb15a57a87b5aa9080cdf39e8cf826 Author: Rene Vergara <rene@vergara.network> Date: Thu Nov 4 13:10:56 2021 -0500 Implement MongoDB authentication commit fa5221b12870f975bfa656c8be088d8827d527fc Author: Rene Vergara <rene@vergara.network> Date: Thu Nov 4 07:49:09 2021 -0500 Enhance blockchain scan commit 01520adbc38f6f59a543897e8796c86b1cb4abb9 Author: Rene Vergara <rene@vergara.network> Date: Tue Nov 2 16:13:24 2021 -0500 Implement database price feed commit 0f5a731d08a74c76aafcd468fe91c987de2ab8f3 Author: Rene Vergara <rene@vergara.network> Date: Tue Nov 2 10:35:22 2021 -0500 Implement order closing commit 33326febaf2a65ad4a5c7b57549e6161982b432a Author: Rene Vergara <rene@vergara.network> Date: Thu Oct 28 15:34:48 2021 -0500 Implement settings dialog commit 251fa5d327b0f1f2a446425906e5ca8ab6607f30 Author: Rene Vergara <rene@vergara.network> Date: Thu Oct 28 13:22:54 2021 -0500 Implement checkout commit dce8da391ee9704da2a543f3459c3c74b1b597f1 Author: Rene Vergara <rene@vergara.network> Date: Wed Oct 27 15:21:55 2021 -0500 Implement order creation and cancellation commit af8ee5dc908a1cd15faeddac0509a35e56d1567e Author: Rene Vergara <rene@vergara.network> Date: Wed Oct 27 07:59:43 2021 -0500 Implement order creation commit 064044c01173251748ff1c93c10fbcafec2a9abf Author: Rene Vergara <rene@vergara.network> Date: Tue Oct 26 15:07:51 2021 -0500 Implement add-to-order dialog commit 8b3dfb29842128476788bc74ea442bc44c252b8a Author: Rene Vergara <rene@vergara.network> Date: Tue Oct 26 15:07:10 2021 -0500 Fix bug in adding item commit 35fcdaae54c92c62e8e39cd4dca70667209558b1 Author: Rene Vergara <rene@vergara.network> Date: Tue Oct 26 13:34:52 2021 -0500 Implement item delete commit 61d68714d242325d0d06b4d67ceb241587da144c Author: Rene Vergara <rene@vergara.network> Date: Tue Oct 26 12:58:39 2021 -0500 Implements custom theme commit a7062e7b116737e85be27565b7e1a4cd6a81b8d4 Author: Rene Vergara <rene@vergara.network> Date: Tue Oct 26 10:09:34 2021 -0500 Implements item edit commit 172ebb0171c59ab54633744cd49ff177bd995f00 Author: Rene Vergara <rene@vergara.network> Date: Mon Oct 25 15:01:06 2021 -0500 Implemented basic order service Implemented adding the component to the viewer and the search in database. Fixed bug in search of item list commit eea8e06d481240ba9bb7117b28c7eedc239da731 Author: Rene Vergara <rene@vergara.network> Date: Mon Oct 25 12:49:50 2021 -0500 Add order mongoose schema commit cd1a0208df35a5fa38853a78779d19864f3b9e72 Author: Rene Vergara <rene@vergara.network> Date: Fri Oct 22 17:20:36 2021 -0500 Implement create item Adds Zcash price feed from CoinGecko commit 22c89b9d4f8a824076a5a42bf5e05dd1adec69e9 Author: Rene Vergara <rene@vergara.network> Date: Thu Oct 21 16:23:33 2021 -0500 Implements item list commit 85b775ae15e80038c2e729d9fc15e50ea3e607a7 Author: Rene Vergara <rene@vergara.network> Date: Thu Oct 21 14:29:19 2021 -0500 Add item model commit 62658f7be925ba8825bc082510637532b9322c9c Author: Rene Vergara <rene@vergara.network> Date: Thu Oct 21 14:29:04 2021 -0500 Fix header commit 7e6cd119621e7d8384997d86d7d2fe6fbb6b242b Author: Rene Vergara <rene@vergara.network> Date: Thu Oct 21 11:22:48 2021 -0500 Fix header commit 4214dac887c5a68154ccbb784b0a147a2b4d02c7 Author: Rene Vergara <rene@vergara.network> Date: Thu Oct 21 10:23:58 2021 -0500 Implement resolver for node address Fixes services. commit 30a83414adcd915546ec34b428b19e6da3d8cfd9 Author: Rene Vergara <rene@vergara.network> Date: Wed Oct 20 15:51:14 2021 -0500 Update of code base commit 6059c04b75123341cc21d49d2d378930111657b2 Author: Rene Vergara <rene@vergara.network> Date: Fri Oct 15 14:14:49 2021 -0500 Implements Zcash login commit 9926a1a4fe5e27154b1363bf42529b1cfa5a05fa Author: Rene Vergara <rene@vergara.network> Date: Fri Oct 1 15:10:14 2021 -0500 initial commit
2022-04-19 20:45:06 +00:00
country: {type: String},
2022-04-11 14:48:34 +00:00
paid: {type: Boolean, required: true, default: false},
zats: {type: Boolean, required: true, default: false}
});
module.exports = mongoose.model('Owner', ownerSchema);