Advertisement
Guest User

Untitled

a guest
Jun 30th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 2.04 KB | None | 0 0
  1. CREATE TABLE `ipbnexus_purchases` (
  2.     `ps_id` INT(10) NOT NULL AUTO_INCREMENT,
  3.     `ps_member` MEDIUMINT(8) NOT NULL DEFAULT '0',
  4.     `ps_name` VARCHAR(128) NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci',
  5.     `ps_active` TINYINT(1) NOT NULL DEFAULT '0',
  6.     `ps_cancelled` TINYINT(1) NOT NULL DEFAULT '0',
  7.     `ps_start` INT(10) NOT NULL DEFAULT '0',
  8.     `ps_expire` INT(10) NOT NULL DEFAULT '0',
  9.     `ps_renewals` INT(5) NOT NULL DEFAULT '0',
  10.     `ps_renewal_price` DECIMAL(20,2) NOT NULL DEFAULT '0.00',
  11.     `ps_renewal_unit` CHAR(1) NOT NULL DEFAULT '' COLLATE 'utf8mb4_unicode_ci',
  12.     `ps_app` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci',
  13.     `ps_type` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci',
  14.     `ps_item_id` INT(10) NOT NULL DEFAULT '0',
  15.     `ps_item_uri` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci',
  16.     `ps_admin_uri` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci',
  17.     `ps_custom_fields` TEXT NULL COLLATE 'utf8mb4_unicode_ci',
  18.     `ps_extra` TEXT NULL COLLATE 'utf8mb4_unicode_ci',
  19.     `ps_parent` INT(10) NOT NULL DEFAULT '0',
  20.     `ps_invoice_pending` INT(10) NOT NULL DEFAULT '0',
  21.     `ps_invoice_warning_sent` TINYINT(1) NOT NULL DEFAULT '0',
  22.     `ps_pay_to` MEDIUMINT(8) NULL DEFAULT NULL,
  23.     `ps_commission` INT(2) NULL DEFAULT NULL,
  24.     `ps_original_invoice` INT(10) NOT NULL DEFAULT '0',
  25.     `ps_tax` INT(5) NOT NULL DEFAULT '0',
  26.     `ps_can_reactivate` TINYINT(1) NOT NULL DEFAULT '0',
  27.     `ps_grouped_renewals` TEXT NULL COLLATE 'utf8mb4_unicode_ci',
  28.     `ps_renewal_currency` CHAR(3) NOT NULL DEFAULT '' COLLATE 'utf8mb4_unicode_ci',
  29.     `ps_show` TINYINT(1) UNSIGNED NOT NULL DEFAULT '1',
  30.     `ps_grace_period` INT(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Grace period in seconds',
  31.     `ps_billing_agreement` BIGINT(20) UNSIGNED NULL DEFAULT NULL COMMENT 'If paid by a billing agreement, its ID',
  32.     PRIMARY KEY (`ps_id`),
  33.     INDEX `ps_member` (`ps_member`),
  34.     INDEX `sort` (`ps_cancelled`, `ps_active`, `ps_start`),
  35.     INDEX `ps_purchases` (`ps_app`(90), `ps_type`(90), `ps_item_id`)
  36. )
  37. COLLATE='utf8mb4_unicode_ci'
  38. ENGINE=InnoDB
  39. AUTO_INCREMENT=4
  40. ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement