   `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;
 

--

CREATE TABLE IF NOT EXISTS `op_groupMember` (
  `id` varchar(6) NOT NULL,
  `owner` varchar(255) NOT NULL,
  `group` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `permission` tinyint(3) unsigned NOT NULL COMMENT 'bitmask of permissions',
  UNIQUE KEY `id` (`id`,`owner`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------


  `pathOriginal` varchar(1000) DEFAULT NULL,
  `pathBase` varchar(1000) DEFAULT NULL,
  `tags` varchar(1000) DEFAULT NULL,
  `groups` varchar(1000) DEFAULT NULL,
  UNIQUE KEY `id` (`id`,`owner`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

