|
@@ -1,16 +1,18 @@
|
|
|
|
|
|
|
|
-- TABLE: entries
|
|
-- TABLE: entries
|
|
|
CREATE TABLE IF NOT EXISTS `bx_market_products` (
|
|
CREATE TABLE IF NOT EXISTS `bx_market_products` (
|
|
|
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
|
|
- `author` int(10) unsigned NOT NULL,
|
|
|
|
|
- `added` int(11) NOT NULL,
|
|
|
|
|
- `changed` int(11) NOT NULL,
|
|
|
|
|
- `thumb` int(11) NOT NULL,
|
|
|
|
|
- `package` int(11) NOT NULL,
|
|
|
|
|
|
|
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
|
|
+ `author` int(11) unsigned NOT NULL default '0',
|
|
|
|
|
+ `added` int(11) NOT NULL default '0',
|
|
|
|
|
+ `changed` int(11) NOT NULL default '0',
|
|
|
|
|
+ `thumb` int(11) NOT NULL default '0',
|
|
|
|
|
+ `package` int(11) NOT NULL default '0',
|
|
|
|
|
+ `name` varchar(255) NOT NULL,
|
|
|
`title` varchar(255) NOT NULL,
|
|
`title` varchar(255) NOT NULL,
|
|
|
`text` text NOT NULL,
|
|
`text` text NOT NULL,
|
|
|
`cat` int(11) NOT NULL,
|
|
`cat` int(11) NOT NULL,
|
|
|
- `price` int(11) NOT NULL,
|
|
|
|
|
|
|
+ `price_single` float NOT NULL default '0',
|
|
|
|
|
+ `price_recurring` int(11) NOT NULL default '0',
|
|
|
`views` int(11) NOT NULL default '0',
|
|
`views` int(11) NOT NULL default '0',
|
|
|
`rate` float NOT NULL default '0',
|
|
`rate` float NOT NULL default '0',
|
|
|
`votes` int(11) NOT NULL default '0',
|
|
`votes` int(11) NOT NULL default '0',
|
|
@@ -22,16 +24,18 @@ CREATE TABLE IF NOT EXISTS `bx_market_products` (
|
|
|
`allow_vote_to` varchar(32) NOT NULL DEFAULT 'c',
|
|
`allow_vote_to` varchar(32) NOT NULL DEFAULT 'c',
|
|
|
`status` enum('active','hidden') NOT NULL DEFAULT 'active',
|
|
`status` enum('active','hidden') NOT NULL DEFAULT 'active',
|
|
|
PRIMARY KEY (`id`),
|
|
PRIMARY KEY (`id`),
|
|
|
|
|
+ UNIQUE KEY `name` (`name`),
|
|
|
FULLTEXT KEY `title_text` (`title`,`text`)
|
|
FULLTEXT KEY `title_text` (`title`,`text`)
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
--- TABLE: customers
|
|
|
|
|
-CREATE TABLE IF NOT EXISTS `bx_market_customers` (
|
|
|
|
|
|
|
+-- TABLE: licenses
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `bx_market_licenses` (
|
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
`client_id` int(11) unsigned NOT NULL default '0',
|
|
`client_id` int(11) unsigned NOT NULL default '0',
|
|
|
`product_id` int(11) unsigned NOT NULL default '0',
|
|
`product_id` int(11) unsigned NOT NULL default '0',
|
|
|
- `order_id` varchar(32) collate utf8_unicode_ci NOT NULL default '',
|
|
|
|
|
`count` int(11) unsigned NOT NULL default '0',
|
|
`count` int(11) unsigned NOT NULL default '0',
|
|
|
|
|
+ `order` varchar(32) collate utf8_unicode_ci NOT NULL default '',
|
|
|
|
|
+ `license` varchar(32) collate utf8_unicode_ci NOT NULL default '',
|
|
|
`date` int(11) unsigned NOT NULL default '0',
|
|
`date` int(11) unsigned NOT NULL default '0',
|
|
|
PRIMARY KEY (`id`),
|
|
PRIMARY KEY (`id`),
|
|
|
KEY `product_id` (`product_id`,`client_id`)
|
|
KEY `product_id` (`product_id`,`client_id`)
|
|
@@ -234,32 +238,38 @@ INSERT INTO `sys_form_inputs`(`object`, `module`, `name`, `value`, `values`, `ch
|
|
|
('bx_market', 'bx_market', 'files', '', '', 0, 'files', '_bx_market_form_entry_input_sys_files', '_bx_market_form_entry_input_files', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
('bx_market', 'bx_market', 'files', '', '', 0, 'files', '_bx_market_form_entry_input_sys_files', '_bx_market_form_entry_input_files', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
('bx_market', 'bx_market', 'text', '', '', 0, 'textarea', '_bx_market_form_entry_input_sys_text', '_bx_market_form_entry_input_text', '', 1, 0, 2, '', '', '', 'Avail', '', '_bx_market_form_entry_input_text_err', 'XssHtml', '', 1, 0),
|
|
('bx_market', 'bx_market', 'text', '', '', 0, 'textarea', '_bx_market_form_entry_input_sys_text', '_bx_market_form_entry_input_text', '', 1, 0, 2, '', '', '', 'Avail', '', '_bx_market_form_entry_input_text_err', 'XssHtml', '', 1, 0),
|
|
|
('bx_market', 'bx_market', 'title', '', '', 0, 'text', '_bx_market_form_entry_input_sys_title', '_bx_market_form_entry_input_title', '', 1, 0, 0, '', '', '', 'Avail', '', '_bx_market_form_entry_input_title_err', 'Xss', '', 1, 0),
|
|
('bx_market', 'bx_market', 'title', '', '', 0, 'text', '_bx_market_form_entry_input_sys_title', '_bx_market_form_entry_input_title', '', 1, 0, 0, '', '', '', 'Avail', '', '_bx_market_form_entry_input_title_err', 'Xss', '', 1, 0),
|
|
|
|
|
+('bx_market', 'bx_market', 'name', '', '', 0, 'text', '_bx_market_form_entry_input_sys_name', '_bx_market_form_entry_input_name', '', 1, 0, 0, '', '', '', 'Avail', '', '_bx_market_form_entry_input_name_err', 'Xss', '', 1, 0),
|
|
|
('bx_market', 'bx_market', 'cat', '', '#!bx_market_cats', 0, 'select', '_bx_market_form_entry_input_sys_cat', '_bx_market_form_entry_input_cat', '', 1, 0, 0, '', '', '', 'avail', '', '_bx_market_form_entry_input_cat_err', 'Xss', '', 1, 0),
|
|
('bx_market', 'bx_market', 'cat', '', '#!bx_market_cats', 0, 'select', '_bx_market_form_entry_input_sys_cat', '_bx_market_form_entry_input_cat', '', 1, 0, 0, '', '', '', 'avail', '', '_bx_market_form_entry_input_cat_err', 'Xss', '', 1, 0),
|
|
|
-('bx_market', 'bx_market', 'price', '', '#!bx_market_prices', 0, 'radio_set', '_bx_market_form_entry_input_sys_price', '_bx_market_form_entry_input_price', '', 1, 0, 0, '', '', '', 'avail', '', '_bx_market_form_entry_input_price_err', 'Xss', '', 1, 0);
|
|
|
|
|
|
|
+('bx_market', 'bx_market', 'price_single', '', '', 0, 'text', '_bx_market_form_entry_input_sys_price_single', '_bx_market_form_entry_input_price_single', '_bx_market_form_entry_input_price_single_inf', 0, 0, 0, '', '', '', '', '', '', 'Float', '', 1, 0),
|
|
|
|
|
+('bx_market', 'bx_market', 'price_recurring', '', '#!bx_market_prices', 0, 'radio_set', '_bx_market_form_entry_input_sys_price_recurring', '_bx_market_form_entry_input_price_recurring', '_bx_market_form_entry_input_price_recurring_inf', 0, 0, 0, '', '', '', '', '', '', 'Float', '', 1, 0);
|
|
|
|
|
|
|
|
INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
|
|
INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
|
|
|
('bx_market_entry_add', 'delete_confirm', 2147483647, 0, 1),
|
|
('bx_market_entry_add', 'delete_confirm', 2147483647, 0, 1),
|
|
|
('bx_market_entry_add', 'title', 2147483647, 1, 2),
|
|
('bx_market_entry_add', 'title', 2147483647, 1, 2),
|
|
|
-('bx_market_entry_add', 'cat', 2147483647, 1, 3),
|
|
|
|
|
-('bx_market_entry_add', 'text', 2147483647, 1, 4),
|
|
|
|
|
-('bx_market_entry_add', 'pictures', 2147483647, 1, 5),
|
|
|
|
|
-('bx_market_entry_add', 'files', 2147483647, 1, 6),
|
|
|
|
|
-('bx_market_entry_add', 'price', 2147483647, 1, 7),
|
|
|
|
|
-('bx_market_entry_add', 'allow_view_to', 2147483647, 1, 8),
|
|
|
|
|
-('bx_market_entry_add', 'allow_purchase_to', 2147483647, 1, 9),
|
|
|
|
|
-('bx_market_entry_add', 'allow_comment_to', 2147483647, 1, 10),
|
|
|
|
|
-('bx_market_entry_add', 'allow_vote_to', 2147483647, 1, 11),
|
|
|
|
|
-('bx_market_entry_add', 'location', 2147483647, 1, 12),
|
|
|
|
|
-('bx_market_entry_add', 'do_submit', 2147483647, 0, 13),
|
|
|
|
|
-('bx_market_entry_add', 'do_publish', 2147483647, 1, 14),
|
|
|
|
|
|
|
+('bx_market_entry_add', 'name', 2147483647, 1, 3),
|
|
|
|
|
+('bx_market_entry_add', 'cat', 2147483647, 1, 4),
|
|
|
|
|
+('bx_market_entry_add', 'text', 2147483647, 1, 5),
|
|
|
|
|
+('bx_market_entry_add', 'pictures', 2147483647, 1, 6),
|
|
|
|
|
+('bx_market_entry_add', 'files', 2147483647, 1, 7),
|
|
|
|
|
+('bx_market_entry_add', 'price_single', 2147483647, 1, 8),
|
|
|
|
|
+('bx_market_entry_add', 'price_recurring', 2147483647, 1, 9),
|
|
|
|
|
+('bx_market_entry_add', 'allow_view_to', 2147483647, 1, 10),
|
|
|
|
|
+('bx_market_entry_add', 'allow_purchase_to', 2147483647, 1, 11),
|
|
|
|
|
+('bx_market_entry_add', 'allow_comment_to', 2147483647, 1, 12),
|
|
|
|
|
+('bx_market_entry_add', 'allow_vote_to', 2147483647, 1, 13),
|
|
|
|
|
+('bx_market_entry_add', 'location', 2147483647, 1, 14),
|
|
|
|
|
+('bx_market_entry_add', 'do_submit', 2147483647, 0, 15),
|
|
|
|
|
+('bx_market_entry_add', 'do_publish', 2147483647, 1, 16),
|
|
|
('bx_market_entry_delete', 'location', 2147483647, 0, 0),
|
|
('bx_market_entry_delete', 'location', 2147483647, 0, 0),
|
|
|
('bx_market_entry_delete', 'cat', 2147483647, 0, 0),
|
|
('bx_market_entry_delete', 'cat', 2147483647, 0, 0),
|
|
|
-('bx_market_entry_delete', 'price', 2147483647, 0, 0),
|
|
|
|
|
|
|
+('bx_market_entry_delete', 'price_single', 2147483647, 0, 0),
|
|
|
|
|
+('bx_market_entry_delete', 'price_recurring', 2147483647, 0, 0),
|
|
|
('bx_market_entry_delete', 'pictures', 2147483647, 0, 0),
|
|
('bx_market_entry_delete', 'pictures', 2147483647, 0, 0),
|
|
|
('bx_market_entry_delete', 'files', 2147483647, 0, 0),
|
|
('bx_market_entry_delete', 'files', 2147483647, 0, 0),
|
|
|
('bx_market_entry_delete', 'text', 2147483647, 0, 0),
|
|
('bx_market_entry_delete', 'text', 2147483647, 0, 0),
|
|
|
('bx_market_entry_delete', 'do_publish', 2147483647, 0, 0),
|
|
('bx_market_entry_delete', 'do_publish', 2147483647, 0, 0),
|
|
|
('bx_market_entry_delete', 'title', 2147483647, 0, 0),
|
|
('bx_market_entry_delete', 'title', 2147483647, 0, 0),
|
|
|
|
|
+('bx_market_entry_delete', 'name', 2147483647, 0, 0),
|
|
|
('bx_market_entry_delete', 'allow_view_to', 2147483647, 0, 0),
|
|
('bx_market_entry_delete', 'allow_view_to', 2147483647, 0, 0),
|
|
|
('bx_market_entry_delete', 'allow_purchase_to', 2147483647, 0, 0),
|
|
('bx_market_entry_delete', 'allow_purchase_to', 2147483647, 0, 0),
|
|
|
('bx_market_entry_delete', 'allow_comment_to', 2147483647, 0, 0),
|
|
('bx_market_entry_delete', 'allow_comment_to', 2147483647, 0, 0),
|
|
@@ -269,26 +279,30 @@ INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for
|
|
|
('bx_market_entry_edit', 'do_publish', 2147483647, 0, 1),
|
|
('bx_market_entry_edit', 'do_publish', 2147483647, 0, 1),
|
|
|
('bx_market_entry_edit', 'delete_confirm', 2147483647, 0, 2),
|
|
('bx_market_entry_edit', 'delete_confirm', 2147483647, 0, 2),
|
|
|
('bx_market_entry_edit', 'title', 2147483647, 1, 3),
|
|
('bx_market_entry_edit', 'title', 2147483647, 1, 3),
|
|
|
-('bx_market_entry_edit', 'cat', 2147483647, 1, 4),
|
|
|
|
|
-('bx_market_entry_edit', 'text', 2147483647, 1, 5),
|
|
|
|
|
-('bx_market_entry_edit', 'pictures', 2147483647, 1, 6),
|
|
|
|
|
-('bx_market_entry_edit', 'files', 2147483647, 1, 7),
|
|
|
|
|
-('bx_market_entry_edit', 'price', 2147483647, 1, 8),
|
|
|
|
|
-('bx_market_entry_edit', 'allow_view_to', 2147483647, 1, 9),
|
|
|
|
|
-('bx_market_entry_edit', 'allow_purchase_to', 2147483647, 1, 10),
|
|
|
|
|
-('bx_market_entry_edit', 'allow_comment_to', 2147483647, 1, 11),
|
|
|
|
|
-('bx_market_entry_edit', 'allow_vote_to', 2147483647, 1, 12),
|
|
|
|
|
-('bx_market_entry_edit', 'location', 2147483647, 1, 13),
|
|
|
|
|
-('bx_market_entry_edit', 'do_submit', 2147483647, 1, 14),
|
|
|
|
|
|
|
+('bx_market_entry_edit', 'name', 2147483647, 1, 4),
|
|
|
|
|
+('bx_market_entry_edit', 'cat', 2147483647, 1, 5),
|
|
|
|
|
+('bx_market_entry_edit', 'text', 2147483647, 1, 6),
|
|
|
|
|
+('bx_market_entry_edit', 'pictures', 2147483647, 1, 7),
|
|
|
|
|
+('bx_market_entry_edit', 'files', 2147483647, 1, 8),
|
|
|
|
|
+('bx_market_entry_edit', 'price_single', 2147483647, 1, 9),
|
|
|
|
|
+('bx_market_entry_edit', 'price_recurring', 2147483647, 1, 10),
|
|
|
|
|
+('bx_market_entry_edit', 'allow_view_to', 2147483647, 1, 11),
|
|
|
|
|
+('bx_market_entry_edit', 'allow_purchase_to', 2147483647, 1, 12),
|
|
|
|
|
+('bx_market_entry_edit', 'allow_comment_to', 2147483647, 1, 13),
|
|
|
|
|
+('bx_market_entry_edit', 'allow_vote_to', 2147483647, 1, 14),
|
|
|
|
|
+('bx_market_entry_edit', 'location', 2147483647, 1, 15),
|
|
|
|
|
+('bx_market_entry_edit', 'do_submit', 2147483647, 1, 16),
|
|
|
('bx_market_entry_view', 'location', 2147483647, 0, 0),
|
|
('bx_market_entry_view', 'location', 2147483647, 0, 0),
|
|
|
('bx_market_entry_view', 'cat', 2147483647, 0, 0),
|
|
('bx_market_entry_view', 'cat', 2147483647, 0, 0),
|
|
|
-('bx_market_entry_view', 'price', 2147483647, 0, 0),
|
|
|
|
|
|
|
+('bx_market_entry_view', 'price_single', 2147483647, 0, 0),
|
|
|
|
|
+('bx_market_entry_view', 'price_recurring', 2147483647, 0, 0),
|
|
|
('bx_market_entry_view', 'pictures', 2147483647, 0, 0),
|
|
('bx_market_entry_view', 'pictures', 2147483647, 0, 0),
|
|
|
('bx_market_entry_view', 'files', 2147483647, 0, 0),
|
|
('bx_market_entry_view', 'files', 2147483647, 0, 0),
|
|
|
('bx_market_entry_view', 'delete_confirm', 2147483647, 0, 0),
|
|
('bx_market_entry_view', 'delete_confirm', 2147483647, 0, 0),
|
|
|
('bx_market_entry_view', 'text', 2147483647, 1, 0),
|
|
('bx_market_entry_view', 'text', 2147483647, 1, 0),
|
|
|
('bx_market_entry_view', 'do_publish', 2147483647, 0, 0),
|
|
('bx_market_entry_view', 'do_publish', 2147483647, 0, 0),
|
|
|
('bx_market_entry_view', 'title', 2147483647, 0, 0),
|
|
('bx_market_entry_view', 'title', 2147483647, 0, 0),
|
|
|
|
|
+('bx_market_entry_view', 'name', 2147483647, 0, 0),
|
|
|
('bx_market_entry_view', 'do_submit', 2147483647, 0, 0),
|
|
('bx_market_entry_view', 'do_submit', 2147483647, 0, 0),
|
|
|
('bx_market_entry_view', 'allow_view_to', 2147483647, 0, 0),
|
|
('bx_market_entry_view', 'allow_view_to', 2147483647, 0, 0),
|
|
|
('bx_market_entry_view', 'allow_purchase_to', 2147483647, 0, 0),
|
|
('bx_market_entry_view', 'allow_purchase_to', 2147483647, 0, 0),
|
|
@@ -342,6 +356,7 @@ INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALU
|
|
|
('bx_market_cats', '38', 38, '_bx_market_cat_translations', ''),
|
|
('bx_market_cats', '38', 38, '_bx_market_cat_translations', ''),
|
|
|
('bx_market_cats', '39', 39, '_bx_market_cat_video', ''),
|
|
('bx_market_cats', '39', 39, '_bx_market_cat_video', ''),
|
|
|
|
|
|
|
|
|
|
+('bx_market_prices', '0', 0, '_bx_market_cat_price_0', ''),
|
|
|
('bx_market_prices', '1', 1, '_bx_market_cat_price_1', ''),
|
|
('bx_market_prices', '1', 1, '_bx_market_cat_price_1', ''),
|
|
|
('bx_market_prices', '2', 2, '_bx_market_cat_price_2', ''),
|
|
('bx_market_prices', '2', 2, '_bx_market_cat_price_2', ''),
|
|
|
('bx_market_prices', '3', 3, '_bx_market_cat_price_3', ''),
|
|
('bx_market_prices', '3', 3, '_bx_market_cat_price_3', ''),
|