· 6 years ago · Mar 09, 2019, 02:50 AM
1/*
2SQLyog Community v10.0
3MySQL - 5.1.61 : Database - odin_sea
4*********************************************************************
5*/
6
7
8/*!40101 SET NAMES utf8 */;
9
10/*!40101 SET SQL_MODE=''*/;
11
12/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
13/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
14/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
15/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
16/*Table structure for table `paypal_donations` */
17
18DROP TABLE IF EXISTS `paypal_donations`;
19
20CREATE TABLE `paypal_donations` (
21 `transaction_id` int(11) NOT NULL AUTO_INCREMENT,
22 `account_id` int(11) NOT NULL,
23 `character_id` int(11) NOT NULL,
24 `donate_amount` int(11) NOT NULL,
25 `points` int(11) NOT NULL,
26 `when` datetime NOT NULL,
27 `last_update` datetime NOT NULL,
28 `status` enum('Unknown','Pending','Refund','Reversed','Started','Completed') NOT NULL,
29 `is_item` tinyint(1) NOT NULL DEFAULT '0',
30 `gave_item` tinyint(1) NOT NULL DEFAULT '0',
31 `item_type` varchar(50) DEFAULT NULL,
32 `msg` text,
33 PRIMARY KEY (`transaction_id`),
34 KEY `account_remove` (`account_id`),
35 CONSTRAINT `account_remove` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE
36) ENGINE=InnoDB AUTO_INCREMENT=150 DEFAULT CHARSET=latin1;
37
38/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
39/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
40/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
41/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;