diff options
| author | Adam Soltys <[email protected]> | 2020-03-27 16:59:02 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-03-27 16:59:44 -0700 |
| commit | d1f87762cc4d665fa364c848e846eb121269b2e4 (patch) | |
| tree | 3e5277796e01246c98efc80dcee273a1e9a947af /db/schema.sql | |
| parent | b75a06ea0dadcb7ad2416e900e15276661e065be (diff) | |
| download | coinos-server-d1f87762cc4d665fa364c848e846eb121269b2e4.tar.gz coinos-server-d1f87762cc4d665fa364c848e846eb121269b2e4.zip | |
invoices model
Diffstat (limited to 'db/schema.sql')
| -rw-r--r-- | db/schema.sql | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/db/schema.sql b/db/schema.sql index 0146c139..83d143ce 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -39,6 +39,30 @@ CREATE TABLE `SequelizeMeta` ( /*!40101 SET character_set_client = @saved_cs_client */; -- +-- Table structure for table `invoices` +-- + +DROP TABLE IF EXISTS `invoices`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `invoices` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `user_id` int(11) DEFAULT NULL, + `text` text DEFAULT NULL, + `createdAt` datetime NOT NULL, + `updatedAt` datetime NOT NULL, + `rate` double DEFAULT NULL, + `currency` varchar(255) NOT NULL, + `address` varchar(255) DEFAULT NULL, + `received` double DEFAULT NULL, + `amount` double DEFAULT NULL, + `tip` double DEFAULT NULL, + `asset` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=3646 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- -- Table structure for table `payments` -- @@ -61,7 +85,7 @@ CREATE TABLE `payments` ( `fee` double DEFAULT NULL, `asset` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=3140 DEFAULT CHARSET=latin1; +) ENGINE=InnoDB AUTO_INCREMENT=3142 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -109,7 +133,7 @@ CREATE TABLE `users` ( `currencies` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL, `otpsecret` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=463 DEFAULT CHARSET=latin1; +) ENGINE=InnoDB AUTO_INCREMENT=474 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; @@ -121,4 +145,4 @@ CREATE TABLE `users` ( /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2020-03-19 22:56:40 +-- Dump completed on 2020-03-27 16:59:40 |
