Advertisement
Guest User

groups_*

a guest
Nov 13th, 2015
634
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 2.09 KB | None | 0 0
  1. CREATE TABLE IF NOT EXISTS `groups_data` (
  2.   `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  3.   `name` VARCHAR(50) NOT NULL,
  4.   `desc` VARCHAR(255) NOT NULL,
  5.   `badge` VARCHAR(50) NOT NULL,
  6.   `owner_id` INT(11) UNSIGNED NOT NULL,
  7.   `created` INT(50) NOT NULL,
  8.   `room_id` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  9.   `state` INT(1) UNSIGNED NOT NULL DEFAULT '0',
  10.   `colour1` INT(11) NOT NULL DEFAULT '242424',
  11.   `colour2` INT(11) NOT NULL DEFAULT '242424',
  12.   `admindeco` INT(1) UNSIGNED DEFAULT '1',
  13.   `has_forum` enum('0','1') NOT NULL DEFAULT '0',
  14.   `forum_name` VARCHAR(255) NOT NULL DEFAULT '',
  15.   `forum_description` VARCHAR(4096) NOT NULL DEFAULT '',
  16.   `forum_messages_count` INT(11) UNSIGNED NOT NULL DEFAULT '0',
  17.   `forum_score` INT(11) UNSIGNED NOT NULL DEFAULT '0',
  18.   `forum_lastposter_id` INT(11) UNSIGNED NOT NULL DEFAULT '0',
  19.   `forum_lastposter_name` VARCHAR(255) NOT NULL DEFAULT '0',
  20.   `forum_lastposter_timestamp` INT(11) NOT NULL DEFAULT '0',
  21.   `who_can_read` INT(11) NOT NULL DEFAULT '0',
  22.   `who_can_post` INT(11) NOT NULL DEFAULT '1',
  23.   `who_can_thread` INT(11) NOT NULL DEFAULT '1',
  24.   `who_can_mod` INT(11) NOT NULL DEFAULT '2',
  25.   PRIMARY KEY (`id`),
  26.   KEY `id` (`id`) USING BTREE
  27. ) ENGINE=InnoDB  DEFAULT CHARSET=latin1;
  28.  
  29. -- --------------------------------------------------------
  30.  
  31. --
  32. -- Structure de la table `groups_members`
  33. --
  34.  
  35. CREATE TABLE IF NOT EXISTS `groups_members` (
  36.   `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  37.   `group_id` INT(11) NOT NULL,
  38.   `user_id` INT(11) UNSIGNED NOT NULL,
  39.   `rank` INT(1) NOT NULL DEFAULT '0',
  40.   `date_join` INT(50) NOT NULL,
  41.   PRIMARY KEY (`id`),
  42.   KEY `groupid` (`group_id`) USING BTREE,
  43.   KEY `userid` (`user_id`) USING BTREE
  44. ) ENGINE=InnoDB  DEFAULT CHARSET=latin1;
  45.  
  46. -- --------------------------------------------------------
  47.  
  48. --
  49. -- Structure de la table `groups_requests`
  50. --
  51.  
  52. CREATE TABLE IF NOT EXISTS `groups_requests` (
  53.   `group_id` INT(11) UNSIGNED NOT NULL,
  54.   `user_id` INT(11) UNSIGNED NOT NULL,
  55.   KEY `groupid` (`group_id`) USING BTREE,
  56.   KEY `userid` (`user_id`) USING BTREE
  57. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement