Skip to content

Commit

Permalink
chore: Add schemas for stripe transations
Browse files Browse the repository at this point in the history
  • Loading branch information
AraanBranco committed Mar 23, 2024
1 parent eb7cb31 commit cdb4ee5
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions data/schemas/logindb/cp_stripetransactions.20240323020801.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
CREATE TABLE IF NOT EXISTS `cp_stripetransactions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`event_reference_id` varchar(255) DEFAULT NULL,
`account_id` int(11) unsigned DEFAULT 0,
`email` varchar(60) DEFAULT NULL,
`server_name` varchar(255) DEFAULT NULL,
`credits` int(11) DEFAULT NULL,
`amount` int(11) DEFAULT NULL,
`settleAmount` int(11) DEFAULT NULL,
`settleCurrency` varchar(3) DEFAULT NULL,
`status` varchar(10) DEFAULT NULL,
`payment_status` varchar(10) DEFAULT NULL,
`json_payload` longtext DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`),
KEY `event_id` (`event_reference_id`),
KEY `account_id` (`account_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='All Stripe transactions logs.' AUTO_INCREMENT=1;
18 changes: 18 additions & 0 deletions data/schemas/logindb/cp_stripetransactionslogs.20240323020702.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
CREATE TABLE IF NOT EXISTS `cp_stripetransactions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`event_reference_id` varchar(255) DEFAULT NULL,
`account_id` int(11) unsigned DEFAULT 0,
`email` varchar(60) DEFAULT NULL,
`server_name` varchar(255) DEFAULT NULL,
`credits` int(11) DEFAULT NULL,
`amount` int(11) DEFAULT NULL,
`settleAmount` int(11) DEFAULT NULL,
`settleCurrency` varchar(3) DEFAULT NULL,
`status` varchar(10) DEFAULT NULL,
`payment_status` varchar(10) DEFAULT NULL,
`json_payload` longtext DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`),
KEY `event_id` (`event_reference_id`),
KEY `account_id` (`account_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='All Stripe transactions logs.' AUTO_INCREMENT=1;

0 comments on commit cdb4ee5

Please sign in to comment.