This repository has been archived by the owner on Sep 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdb.sql
113 lines (88 loc) · 3.6 KB
/
db.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# ************************************************************
# Sequel Pro SQL dump
# Version 5446
#
# https://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 127.0.0.1 (MySQL 5.7.21)
# Database: blocksig
# Generation Time: 2020-08-07 01:29:02 +0000
# ************************************************************
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
SET NAMES utf8mb4;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
# Dump of table docs
# ------------------------------------------------------------
DROP TABLE IF EXISTS `docs`;
CREATE TABLE `docs` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`url` varchar(255) DEFAULT NULL,
`orig_hash` varchar(64) DEFAULT NULL,
`final_hash` varchar(64) DEFAULT NULL,
`sender` text,
`plan` enum('free','monthly','paygo') DEFAULT 'free',
`stripeCustomer` varchar(100) DEFAULT NULL,
`signatures` text,
`signers` text,
`token` varchar(64) DEFAULT NULL,
`txHash` varchar(64) DEFAULT NULL,
`prevHash` varchar(64) DEFAULT NULL,
`status` enum('unconfirmed','confirmed','pending','signed','rejected','canceled','pendingnotary','notarized') DEFAULT 'unconfirmed',
`notarize` tinyint(1) DEFAULT NULL,
`ctime` int(14) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `token` (`token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table requests
# ------------------------------------------------------------
DROP TABLE IF EXISTS `requests`;
CREATE TABLE `requests` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`token` varchar(64) DEFAULT NULL,
`doc_id` int(11) unsigned DEFAULT NULL,
`signer_id` int(11) DEFAULT NULL,
`address` varchar(40) DEFAULT NULL,
`txHash` varchar(64) DEFAULT NULL,
`prevHash` varchar(64) DEFAULT NULL,
`status` enum('pending','signed','propagated','rejected') DEFAULT 'pending',
`stime` int(14) unsigned DEFAULT NULL,
`btime` int(14) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `token` (`token`),
UNIQUE KEY `doc_id` (`doc_id`,`signer_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table stripe_charges
# ------------------------------------------------------------
DROP TABLE IF EXISTS `stripe_charges`;
CREATE TABLE `stripe_charges` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`charge_id` varchar(100) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`doc_id` int(11) DEFAULT NULL,
`ctime` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table stripe_subscriptions
# ------------------------------------------------------------
DROP TABLE IF EXISTS `stripe_subscriptions`;
CREATE TABLE `stripe_subscriptions` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`subscription_id` varchar(100) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`doc_id` int(11) DEFAULT NULL,
`ctime` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;