Skip to content

Commit 8f22c31

Browse files
committed
Update subscription table schema
1 parent 5e53338 commit 8f22c31

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

schema/subscriptions.sql

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
CREATE TABLE `subscriptions` (
2+
`id` bigint unsigned NOT NULL,
3+
`owner` varchar(75) DEFAULT NULL,
4+
`node` varchar(100) DEFAULT NULL,
5+
`price` bigint DEFAULT NULL,
6+
`deposit` bigint DEFAULT NULL,
7+
`denomination` varchar(150) DEFAULT NULL,
8+
`sub_date` timestamp NOT NULL,
9+
`inactive_date` timestamp NULL DEFAULT NULL,
10+
`type` varchar(10) DEFAULT NULL,
11+
`gigabytes` decimal(10,3) DEFAULT NULL,
12+
`hours` decimal(10,3) DEFAULT NULL,
13+
`plan_id` mediumint DEFAULT NULL,
14+
`policy` varchar(100) DEFAULT NULL,
15+
`base_value` decimal(18,18) DEFAULT NULL,
16+
PRIMARY KEY (`id`,`sub_date`)

0 commit comments

Comments
 (0)