2018-07-11 00:35:10 +00:00
|
|
|
CREATE TABLE IF NOT EXISTS `#__membersmanager_member` (
|
|
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
|
|
|
|
`account` TINYINT(1) NOT NULL DEFAULT 0,
|
|
|
|
`email` VARCHAR(255) NOT NULL DEFAULT '',
|
|
|
|
`main_member` INT(11) NOT NULL DEFAULT 0,
|
|
|
|
`name` VARCHAR(255) NOT NULL DEFAULT '',
|
2018-09-19 12:29:53 +00:00
|
|
|
`password` VARCHAR(255) NOT NULL DEFAULT '',
|
|
|
|
`password_check` VARCHAR(255) NOT NULL DEFAULT '',
|
2018-07-11 00:35:10 +00:00
|
|
|
`profile_image` TEXT NOT NULL,
|
2018-09-19 12:29:53 +00:00
|
|
|
`surname` CHAR(255) NOT NULL DEFAULT '',
|
2018-07-25 03:00:13 +00:00
|
|
|
`token` VARCHAR(255) NOT NULL DEFAULT '',
|
2018-12-27 10:38:37 +00:00
|
|
|
`type` TEXT NOT NULL,
|
2018-07-11 00:35:10 +00:00
|
|
|
`user` INT(11) NOT NULL DEFAULT 0,
|
2018-09-19 12:29:53 +00:00
|
|
|
`useremail` VARCHAR(255) NOT NULL DEFAULT '',
|
|
|
|
`username` VARCHAR(255) NOT NULL DEFAULT '',
|
2019-04-04 11:58:49 +00:00
|
|
|
`params` text NOT NULL,
|
2018-07-11 00:35:10 +00:00
|
|
|
`published` TINYINT(3) NOT NULL DEFAULT 1,
|
|
|
|
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
|
|
|
`modified_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
|
|
|
`created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
|
|
|
`modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
|
|
|
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
|
|
|
|
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
|
|
|
`version` INT(10) unsigned NOT NULL DEFAULT 1,
|
|
|
|
`hits` INT(10) unsigned NOT NULL DEFAULT 0,
|
|
|
|
`access` INT(10) unsigned NOT NULL DEFAULT 0,
|
|
|
|
`ordering` INT(11) NOT NULL DEFAULT 0,
|
|
|
|
PRIMARY KEY (`id`),
|
2021-01-06 14:00:15 +00:00
|
|
|
KEY `idx_name` (`name`),
|
|
|
|
KEY `idx_account` (`account`),
|
|
|
|
KEY `idx_user` (`user`),
|
|
|
|
KEY `idx_token` (`token`),
|
2018-07-11 00:35:10 +00:00
|
|
|
KEY `idx_access` (`access`),
|
|
|
|
KEY `idx_checkout` (`checked_out`),
|
|
|
|
KEY `idx_createdby` (`created_by`),
|
|
|
|
KEY `idx_modifiedby` (`modified_by`),
|
2021-01-06 14:00:15 +00:00
|
|
|
KEY `idx_state` (`published`)
|
2018-09-26 14:54:10 +00:00
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
|
2018-07-11 00:35:10 +00:00
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `#__membersmanager_type` (
|
|
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
|
2018-12-27 10:38:37 +00:00
|
|
|
`add_relationship` TINYINT(1) NOT NULL DEFAULT 0,
|
2018-07-11 00:35:10 +00:00
|
|
|
`alias` CHAR(64) NOT NULL DEFAULT '',
|
2018-12-27 10:38:37 +00:00
|
|
|
`communicate` TINYINT(1) NOT NULL DEFAULT 0,
|
2018-07-11 00:35:10 +00:00
|
|
|
`description` TEXT NOT NULL,
|
2018-12-27 10:38:37 +00:00
|
|
|
`edit_relationship` TEXT NOT NULL,
|
|
|
|
`field_type` TINYINT(1) NOT NULL DEFAULT 1,
|
2018-09-19 12:29:53 +00:00
|
|
|
`groups_access` TEXT NOT NULL,
|
|
|
|
`groups_target` TEXT NOT NULL,
|
2018-07-11 00:35:10 +00:00
|
|
|
`name` VARCHAR(255) NOT NULL DEFAULT '',
|
2018-12-27 10:38:37 +00:00
|
|
|
`type` TEXT NOT NULL,
|
|
|
|
`view_relationship` TEXT NOT NULL,
|
2019-04-04 11:58:49 +00:00
|
|
|
`params` text NOT NULL,
|
2018-07-11 00:35:10 +00:00
|
|
|
`published` TINYINT(3) NOT NULL DEFAULT 1,
|
|
|
|
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
|
|
|
`modified_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
|
|
|
`created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
|
|
|
`modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
|
|
|
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
|
|
|
|
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
|
|
|
`version` INT(10) unsigned NOT NULL DEFAULT 1,
|
|
|
|
`hits` INT(10) unsigned NOT NULL DEFAULT 0,
|
|
|
|
`access` INT(10) unsigned NOT NULL DEFAULT 0,
|
|
|
|
`ordering` INT(11) NOT NULL DEFAULT 0,
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
KEY `idx_name` (`name`),
|
2018-12-27 10:38:37 +00:00
|
|
|
KEY `idx_add_relationship` (`add_relationship`),
|
|
|
|
KEY `idx_field_type` (`field_type`),
|
|
|
|
KEY `idx_communicate` (`communicate`),
|
2021-01-06 14:00:15 +00:00
|
|
|
KEY `idx_alias` (`alias`),
|
|
|
|
KEY `idx_access` (`access`),
|
|
|
|
KEY `idx_checkout` (`checked_out`),
|
|
|
|
KEY `idx_createdby` (`created_by`),
|
|
|
|
KEY `idx_modifiedby` (`modified_by`),
|
|
|
|
KEY `idx_state` (`published`)
|
2018-09-26 14:54:10 +00:00
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
|
2018-07-11 00:35:10 +00:00
|
|
|
|
2018-12-27 10:38:37 +00:00
|
|
|
CREATE TABLE IF NOT EXISTS `#__membersmanager_type_map` (
|
|
|
|
`member` INT(11) NOT NULL DEFAULT 0,
|
|
|
|
`type` INT(11) NOT NULL DEFAULT 0
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `#__membersmanager_relation_map` (
|
|
|
|
`relation` INT(11) NOT NULL DEFAULT 0,
|
|
|
|
`member` INT(11) NOT NULL DEFAULT 0,
|
|
|
|
`type` INT(11) NOT NULL DEFAULT 0
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
|
|
|
|
|
2018-07-11 00:35:10 +00:00
|
|
|
|