-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add schemas for stripe transations
- Loading branch information
1 parent
eb7cb31
commit cdb4ee5
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
data/schemas/logindb/cp_stripetransactions.20240323020801.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
18
data/schemas/logindb/cp_stripetransactionslogs.20240323020702.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |