   `owner` varchar(255) NOT NULL,
   `appId` varchar(255) DEFAULT NULL,
   `name` varchar(255) DEFAULT NULL,
-  `members` text,
+  `permission` tinyint(4) NOT NULL COMMENT 'Bitmask of permissions',
   UNIQUE KEY `id` (`id`,`owner`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 

  `size` int(11) DEFAULT NULL,
  `width` int(11) DEFAULT NULL,
  `height` int(11) DEFAULT NULL,
  `extra` varchar(1000) DEFAULT NULL,
  `views` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `permission` int(11) DEFAULT NULL,

--

CREATE TABLE IF NOT EXISTS `op_tag` (
  `id` varchar(255) NOT NULL,
  `owner` varchar(255) NOT NULL,
  `countPublic` int(11) NOT NULL DEFAULT '0',
  `countPrivate` int(11) NOT NULL DEFAULT '0',
