PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE "django_migrations" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "app" varchar(255) NOT NULL, "name" varchar(255) NOT NULL, "applied" datetime NOT NULL);
INSERT INTO "django_migrations" VALUES(1,'admin_log','0001_initial','2019-03-27 09:40:32.756150');
INSERT INTO "django_migrations" VALUES(2,'api2','0001_initial','2019-03-27 09:40:32.826892');
INSERT INTO "django_migrations" VALUES(3,'contenttypes','0001_initial','2019-03-27 09:40:32.890042');
INSERT INTO "django_migrations" VALUES(4,'contenttypes','0002_remove_content_type_name','2019-03-27 09:40:32.977679');
INSERT INTO "django_migrations" VALUES(5,'auth','0001_initial','2019-03-27 09:40:33.077343');
INSERT INTO "django_migrations" VALUES(6,'auth','0002_alter_permission_name_max_length','2019-03-27 09:40:33.142699');
INSERT INTO "django_migrations" VALUES(7,'auth','0003_alter_user_email_max_length','2019-03-27 09:40:33.212039');
INSERT INTO "django_migrations" VALUES(8,'auth','0004_alter_user_username_opts','2019-03-27 09:40:33.289709');
INSERT INTO "django_migrations" VALUES(9,'auth','0005_alter_user_last_login_null','2019-03-27 09:40:33.347909');
INSERT INTO "django_migrations" VALUES(10,'auth','0006_require_contenttypes_0002','2019-03-27 09:40:33.363268');
INSERT INTO "django_migrations" VALUES(11,'auth','0007_alter_validators_add_error_messages','2019-03-27 09:40:33.429498');
INSERT INTO "django_migrations" VALUES(12,'auth','0008_alter_user_username_max_length','2019-03-27 09:40:33.491111');
INSERT INTO "django_migrations" VALUES(13,'avatar','0001_initial','2019-03-27 09:40:33.555988');
INSERT INTO "django_migrations" VALUES(14,'tags','0001_initial','2019-03-27 09:40:33.657536');
INSERT INTO "django_migrations" VALUES(15,'group','0001_initial','2019-03-27 09:40:33.752320');
INSERT INTO "django_migrations" VALUES(16,'base','0001_initial','2019-03-27 09:40:33.923502');
INSERT INTO "django_migrations" VALUES(17,'base','[REDACTED]','2019-03-27 09:40:34.061235');
INSERT INTO "django_migrations" VALUES(18,'base','0003_auto_20181016_1242','2019-03-27 09:40:34.151350');
INSERT INTO "django_migrations" VALUES(19,'captcha','0001_initial','2019-03-27 09:40:34.209486');
INSERT INTO "django_migrations" VALUES(20,'contacts','0001_initial','2019-03-27 09:40:34.261627');
INSERT INTO "django_migrations" VALUES(21,'database','0001_initial','2019-03-27 09:40:34.308886');
INSERT INTO "django_migrations" VALUES(22,'django_cas_ng','0001_initial','2019-03-27 09:40:34.430152');
INSERT INTO "django_migrations" VALUES(23,'django_cas_ng','0002_auto_20180410_0948','2019-03-27 09:40:34.504923');
INSERT INTO "django_migrations" VALUES(24,'drafts','0001_initial','2019-03-27 09:40:34.656746');
INSERT INTO "django_migrations" VALUES(25,'drafts','[REDACTED]','2019-03-27 09:40:34.727932');
INSERT INTO "django_migrations" VALUES(26,'drafts','0003_auto_20190301_0648','2019-03-27 09:40:35.000827');
INSERT INTO "django_migrations" VALUES(27,'repo_tags','0001_initial','2019-03-27 09:40:35.060552');
INSERT INTO "django_migrations" VALUES(28,'file_tags','0001_initial','2019-03-27 09:40:35.124188');
INSERT INTO "django_migrations" VALUES(29,'file_tags','0002_remove_filetags_parent_folder_uuid','2019-03-27 09:40:35.200055');
INSERT INTO "django_migrations" VALUES(30,'institutions','0001_initial','2019-03-27 09:40:35.264086');
INSERT INTO "django_migrations" VALUES(31,'institutions','0002_institutionquota','2019-03-27 09:40:35.321346');
INSERT INTO "django_migrations" VALUES(32,'institutions','0003_auto_20180426_0710','2019-03-27 09:40:35.390937');
INSERT INTO "django_migrations" VALUES(33,'invitations','0001_initial','2019-03-27 09:40:35.445426');
INSERT INTO "django_migrations" VALUES(34,'invitations','0002_invitation_invite_type','2019-03-27 09:40:35.508615');
INSERT INTO "django_migrations" VALUES(35,'invitations','0003_auto_20160510_1703','2019-03-27 09:40:35.603708');
INSERT INTO "django_migrations" VALUES(36,'invitations','0004_auto_20160629_1610','2019-03-27 09:40:35.688650');
INSERT INTO "django_migrations" VALUES(37,'invitations','0005_auto_20160629_1614','2019-03-27 09:40:35.753266');
INSERT INTO "django_migrations" VALUES(38,'notifications','0001_initial','2019-03-27 09:40:35.822865');
INSERT INTO "django_migrations" VALUES(39,'notifications','0002_auto_20180426_0710','2019-03-27 09:40:35.891843');
INSERT INTO "django_migrations" VALUES(40,'notifications','0003_auto_20181115_0825','2019-03-27 09:40:35.965729');
INSERT INTO "django_migrations" VALUES(41,'options','0001_initial','2019-03-27 09:40:36.025508');
INSERT INTO "django_migrations" VALUES(42,'options','0002_auto_20181107_0811','2019-03-27 09:40:36.096526');
INSERT INTO "django_migrations" VALUES(43,'organizations','0001_initial','2019-03-27 09:40:36.163229');
INSERT INTO "django_migrations" VALUES(44,'organizations','0002_orgsettings','2019-03-27 09:40:36.225859');
INSERT INTO "django_migrations" VALUES(45,'organizations','0003_auto_20190116_0323','2019-03-27 09:40:36.292351');
INSERT INTO "django_migrations" VALUES(46,'post_office','0001_initial','2019-03-27 09:40:36.453375');
INSERT INTO "django_migrations" VALUES(47,'post_office','0002_add_i18n_and_backend_alias','2019-03-27 09:40:36.874891');
INSERT INTO "django_migrations" VALUES(48,'post_office','0003_longer_subject','2019-03-27 09:40:36.975276');
INSERT INTO "django_migrations" VALUES(49,'post_office','0004_auto_20160607_0901','2019-03-27 09:40:37.713593');
INSERT INTO "django_migrations" VALUES(50,'post_office','0005_auto_20170515_0013','2019-03-27 09:40:37.777858');
INSERT INTO "django_migrations" VALUES(51,'post_office','0006_attachment_mimetype','2019-03-27 09:40:37.841455');
INSERT INTO "django_migrations" VALUES(52,'profile','0001_initial','2019-03-27 09:40:37.926806');
INSERT INTO "django_migrations" VALUES(53,'profile','0002_auto_20190122_0225','2019-03-27 09:40:38.001821');
INSERT INTO "django_migrations" VALUES(54,'registration','0001_initial','2019-03-27 09:40:38.073169');
INSERT INTO "django_migrations" VALUES(55,'related_files','0001_initial','2019-03-27 09:40:38.147850');
INSERT INTO "django_migrations" VALUES(56,'revision_tag','0001_initial','2019-03-27 09:40:38.242100');
INSERT INTO "django_migrations" VALUES(57,'role_permissions','0001_initial','2019-03-27 09:40:38.306976');
INSERT INTO "django_migrations" VALUES(58,'sessions','0001_initial','2019-03-27 09:40:38.371254');
INSERT INTO "django_migrations" VALUES(59,'share','0001_initial','2019-03-27 09:40:38.549474');
INSERT INTO "django_migrations" VALUES(60,'social_django','0001_initial','2019-03-27 09:40:38.768599');
INSERT INTO "django_migrations" VALUES(61,'sysadmin_extra','0001_initial','2019-03-27 09:40:38.834032');
INSERT INTO "django_migrations" VALUES(62,'termsandconditions','0001_initial','2019-03-27 09:40:38.953329');
INSERT INTO "django_migrations" VALUES(63,'trusted_ip','0001_initial','2019-03-27 09:40:39.019538');
INSERT INTO "django_migrations" VALUES(64,'two_factor','0001_initial','2019-03-27 09:40:39.158966');
INSERT INTO "django_migrations" VALUES(65,'wiki','0001_initial','2019-03-27 09:40:39.252594');
INSERT INTO "django_migrations" VALUES(66,'wiki','0002_auto_20180326_0548','2019-03-27 09:40:39.338474');
INSERT INTO "django_migrations" VALUES(67,'wiki','0003_auto_20180428_0619','2019-03-27 09:40:39.409408');
CREATE TABLE "admin_log_adminlog" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "email" varchar(254) NOT NULL, "operation" varchar(255) NOT NULL, "detail" text NOT NULL, "datetime" datetime NOT NULL);
CREATE TABLE "api2_token" ("key" varchar(40) NOT NULL PRIMARY KEY, "user" varchar(255) NOT NULL UNIQUE, "created" datetime NOT NULL);
CREATE TABLE "api2_tokenv2" ("key" varchar(40) NOT NULL PRIMARY KEY, "user" varchar(255) NOT NULL, "platform" varchar(32) NOT NULL, "device_id" varchar(40) NOT NULL, "device_name" varchar(40) NOT NULL, "platform_version" varchar(16) NOT NULL, "client_version" varchar(16) NOT NULL, "last_accessed" datetime NOT NULL, "last_login_ip" char(39) NULL, "created_at" datetime NOT NULL, "wiped_at" datetime NULL);
CREATE TABLE "django_content_type" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "app_label" varchar(100) NOT NULL, "model" varchar(100) NOT NULL);
INSERT INTO "django_content_type" VALUES(1,'contenttypes','contenttype');
INSERT INTO "django_content_type" VALUES(2,'constance','config');
INSERT INTO "django_content_type" VALUES(3,'sessions','session');
INSERT INTO "django_content_type" VALUES(4,'base','groupenabledmodule');
INSERT INTO "django_content_type" VALUES(5,'base','clientlogintoken');
INSERT INTO "django_content_type" VALUES(6,'base','reposecretkey');
INSERT INTO "django_content_type" VALUES(7,'base','commandslastcheck');
INSERT INTO "django_content_type" VALUES(8,'base','userenabledmodule');
INSERT INTO "django_content_type" VALUES(9,'base','filecomment');
INSERT INTO "django_content_type" VALUES(10,'base','userstarredfiles');
INSERT INTO "django_content_type" VALUES(11,'base','filediscuss');
INSERT INTO "django_content_type" VALUES(12,'base','innerpubmsg');
INSERT INTO "django_content_type" VALUES(13,'base','innerpubmsgreply');
INSERT INTO "django_content_type" VALUES(14,'base','userlastlogin');
INSERT INTO "django_content_type" VALUES(15,'base','devicetoken');
INSERT INTO "django_content_type" VALUES(16,'auth','group');
INSERT INTO "django_content_type" VALUES(17,'auth','user');
INSERT INTO "django_content_type" VALUES(18,'auth','permission');
INSERT INTO "django_content_type" VALUES(19,'registration','registrationprofile');
INSERT INTO "django_content_type" VALUES(20,'captcha','captchastore');
INSERT INTO "django_content_type" VALUES(21,'database','constance');
INSERT INTO "django_content_type" VALUES(22,'post_office','log');
INSERT INTO "django_content_type" VALUES(23,'post_office','emailtemplate');
INSERT INTO "django_content_type" VALUES(24,'post_office','email');
INSERT INTO "django_content_type" VALUES(25,'post_office','attachment');
INSERT INTO "django_content_type" VALUES(26,'termsandconditions','termsandconditions');
INSERT INTO "django_content_type" VALUES(27,'termsandconditions','usertermsandconditions');
INSERT INTO "django_content_type" VALUES(28,'social_django','nonce');
INSERT INTO "django_content_type" VALUES(29,'social_django','usersocialauth');
INSERT INTO "django_content_type" VALUES(30,'social_django','code');
INSERT INTO "django_content_type" VALUES(31,'social_django','partial');
INSERT INTO "django_content_type" VALUES(32,'social_django','association');
INSERT INTO "django_content_type" VALUES(33,'api2','token');
INSERT INTO "django_content_type" VALUES(34,'api2','tokenv2');
INSERT INTO "django_content_type" VALUES(35,'avatar','avatar');
INSERT INTO "django_content_type" VALUES(36,'avatar','groupavatar');
INSERT INTO "django_content_type" VALUES(37,'contacts','contact');
INSERT INTO "django_content_type" VALUES(38,'drafts','draft');
INSERT INTO "django_content_type" VALUES(39,'drafts','draftreviewer');
INSERT INTO "django_content_type" VALUES(40,'institutions','institutionadmin');
INSERT INTO "django_content_type" VALUES(41,'institutions','institution');
INSERT INTO "django_content_type" VALUES(42,'institutions','institutionquota');
INSERT INTO "django_content_type" VALUES(43,'invitations','invitation');
INSERT INTO "django_content_type" VALUES(44,'wiki','personalwiki');
INSERT INTO "django_content_type" VALUES(45,'wiki','wiki');
INSERT INTO "django_content_type" VALUES(46,'wiki','groupwiki');
INSERT INTO "django_content_type" VALUES(47,'group','publicgroup');
INSERT INTO "django_content_type" VALUES(48,'group','groupmessage');
INSERT INTO "django_content_type" VALUES(49,'group','messagereply');
INSERT INTO "django_content_type" VALUES(50,'group','messageattachment');
INSERT INTO "django_content_type" VALUES(51,'notifications','notification');
INSERT INTO "django_content_type" VALUES(52,'notifications','usernotification');
INSERT INTO "django_content_type" VALUES(53,'options','useroptions');
INSERT INTO "django_content_type" VALUES(54,'profile','detailedprofile');
INSERT INTO "django_content_type" VALUES(55,'profile','profile');
INSERT INTO "django_content_type" VALUES(56,'share','privatefiledirshare');
INSERT INTO "django_content_type" VALUES(57,'share','fileshare');
INSERT INTO "django_content_type" VALUES(58,'share','orgfileshare');
INSERT INTO "django_content_type" VALUES(59,'share','uploadlinkshare');
INSERT INTO "django_content_type" VALUES(60,'share','extrasharepermission');
INSERT INTO "django_content_type" VALUES(61,'share','extragroupssharepermission');
INSERT INTO "django_content_type" VALUES(62,'share','anonymousshare');
INSERT INTO "django_content_type" VALUES(63,'admin_log','adminlog');
INSERT INTO "django_content_type" VALUES(64,'tags','fileuuidmap');
INSERT INTO "django_content_type" VALUES(65,'tags','filetag');
INSERT INTO "django_content_type" VALUES(66,'tags','tags');
INSERT INTO "django_content_type" VALUES(67,'revision_tag','revisiontags');
INSERT INTO "django_content_type" VALUES(68,'revision_tag','tags');
INSERT INTO "django_content_type" VALUES(69,'two_factor','phonedevice');
INSERT INTO "django_content_type" VALUES(70,'two_factor','statictoken');
INSERT INTO "django_content_type" VALUES(71,'two_factor','totpdevice');
INSERT INTO "django_content_type" VALUES(72,'two_factor','staticdevice');
INSERT INTO "django_content_type" VALUES(73,'role_permissions','adminrole');
INSERT INTO "django_content_type" VALUES(74,'trusted_ip','trustedip');
INSERT INTO "django_content_type" VALUES(75,'repo_tags','repotags');
INSERT INTO "django_content_type" VALUES(76,'file_tags','filetags');
INSERT INTO "django_content_type" VALUES(77,'related_files','relatedfiles');
INSERT INTO "django_content_type" VALUES(78,'sysadmin_extra','userloginlog');
INSERT INTO "django_content_type" VALUES(79,'organizations','orgsettings');
INSERT INTO "django_content_type" VALUES(80,'organizations','orgmemberquota');
INSERT INTO "django_content_type" VALUES(81,'django_cas_ng','proxygrantingticket');
INSERT INTO "django_content_type" VALUES(82,'django_cas_ng','sessionticket');
INSERT INTO "django_content_type" VALUES(83,'plan','orgplan');
INSERT INTO "django_content_type" VALUES(84,'plan','userplan');
CREATE TABLE "auth_group" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" varchar(80) NOT NULL UNIQUE);
CREATE TABLE "auth_group_permissions" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "group_id" integer NOT NULL REFERENCES "auth_group" ("id"), "permission_id" integer NOT NULL REFERENCES "auth_permission" ("id"));
CREATE TABLE "auth_user_groups" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "user_id" integer NOT NULL REFERENCES "auth_user" ("id"), "group_id" integer NOT NULL REFERENCES "auth_group" ("id"));
CREATE TABLE "auth_user_user_permissions" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "user_id" integer NOT NULL REFERENCES "auth_user" ("id"), "permission_id" integer NOT NULL REFERENCES "auth_permission" ("id"));
CREATE TABLE "auth_permission" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "content_type_id" integer NOT NULL REFERENCES "django_content_type" ("id"), "codename" varchar(100) NOT NULL, "name" varchar(255) NOT NULL);
INSERT INTO "auth_permission" VALUES(1,1,'add_contenttype','Can add content type');
INSERT INTO "auth_permission" VALUES(2,1,'change_contenttype','Can change content type');
INSERT INTO "auth_permission" VALUES(3,1,'delete_contenttype','Can delete content type');
INSERT INTO "auth_permission" VALUES(4,2,'change_config','Can change config');
INSERT INTO "auth_permission" VALUES(5,3,'add_session','Can add session');
INSERT INTO "auth_permission" VALUES(6,3,'change_session','Can change session');
INSERT INTO "auth_permission" VALUES(7,3,'delete_session','Can delete session');
INSERT INTO "auth_permission" VALUES(8,8,'add_userenabledmodule','Can add user enabled module');
INSERT INTO "auth_permission" VALUES(9,8,'change_userenabledmodule','Can change user enabled module');
INSERT INTO "auth_permission" VALUES(10,8,'delete_userenabledmodule','Can delete user enabled module');
INSERT INTO "auth_permission" VALUES(11,10,'add_userstarredfiles','Can add user starred files');
INSERT INTO "auth_permission" VALUES(12,10,'change_userstarredfiles','Can change user starred files');
INSERT INTO "auth_permission" VALUES(13,10,'delete_userstarredfiles','Can delete user starred files');
INSERT INTO "auth_permission" VALUES(14,11,'add_filediscuss','Can add file discuss');
INSERT INTO "auth_permission" VALUES(15,11,'change_filediscuss','Can change file discuss');
INSERT INTO "auth_permission" VALUES(16,11,'delete_filediscuss','Can delete file discuss');
INSERT INTO "auth_permission" VALUES(17,6,'add_reposecretkey','Can add repo secret key');
INSERT INTO "auth_permission" VALUES(18,6,'change_reposecretkey','Can change repo secret key');
INSERT INTO "auth_permission" VALUES(19,6,'delete_reposecretkey','Can delete repo secret key');
INSERT INTO "auth_permission" VALUES(20,14,'add_userlastlogin','Can add user last login');
INSERT INTO "auth_permission" VALUES(21,14,'change_userlastlogin','Can change user last login');
INSERT INTO "auth_permission" VALUES(22,14,'delete_userlastlogin','Can delete user last login');
INSERT INTO "auth_permission" VALUES(23,12,'add_innerpubmsg','Can add inner pub msg');
INSERT INTO "auth_permission" VALUES(24,12,'change_innerpubmsg','Can change inner pub msg');
INSERT INTO "auth_permission" VALUES(25,12,'delete_innerpubmsg','Can delete inner pub msg');
INSERT INTO "auth_permission" VALUES(26,4,'add_groupenabledmodule','Can add group enabled module');
INSERT INTO "auth_permission" VALUES(27,4,'change_groupenabledmodule','Can change group enabled module');
INSERT INTO "auth_permission" VALUES(28,4,'delete_groupenabledmodule','Can delete group enabled module');
INSERT INTO "auth_permission" VALUES(29,7,'add_commandslastcheck','Can add commands last check');
INSERT INTO "auth_permission" VALUES(30,7,'change_commandslastcheck','Can change commands last check');
INSERT INTO "auth_permission" VALUES(31,7,'delete_commandslastcheck','Can delete commands last check');
INSERT INTO "auth_permission" VALUES(32,9,'add_filecomment','Can add file comment');
INSERT INTO "auth_permission" VALUES(33,9,'change_filecomment','Can change file comment');
INSERT INTO "auth_permission" VALUES(34,9,'delete_filecomment','Can delete file comment');
INSERT INTO "auth_permission" VALUES(35,13,'add_innerpubmsgreply','Can add inner pub msg reply');
INSERT INTO "auth_permission" VALUES(36,13,'change_innerpubmsgreply','Can change inner pub msg reply');
INSERT INTO "auth_permission" VALUES(37,13,'delete_innerpubmsgreply','Can delete inner pub msg reply');
INSERT INTO "auth_permission" VALUES(38,5,'add_clientlogintoken','Can add client login token');
INSERT INTO "auth_permission" VALUES(39,5,'change_clientlogintoken','Can change client login token');
INSERT INTO "auth_permission" VALUES(40,5,'delete_clientlogintoken','Can delete client login token');
INSERT INTO "auth_permission" VALUES(41,15,'add_devicetoken','Can add device token');
INSERT INTO "auth_permission" VALUES(42,15,'change_devicetoken','Can change device token');
INSERT INTO "auth_permission" VALUES(43,15,'delete_devicetoken','Can delete device token');
INSERT INTO "auth_permission" VALUES(44,16,'add_group','Can add group');
INSERT INTO "auth_permission" VALUES(45,16,'change_group','Can change group');
INSERT INTO "auth_permission" VALUES(46,16,'delete_group','Can delete group');
INSERT INTO "auth_permission" VALUES(47,18,'add_permission','Can add permission');
INSERT INTO "auth_permission" VALUES(48,18,'change_permission','Can change permission');
INSERT INTO "auth_permission" VALUES(49,18,'delete_permission','Can delete permission');
INSERT INTO "auth_permission" VALUES(50,17,'add_user','Can add user');
INSERT INTO "auth_permission" VALUES(51,17,'change_user','Can change user');
INSERT INTO "auth_permission" VALUES(52,17,'delete_user','Can delete user');
INSERT INTO "auth_permission" VALUES(53,19,'add_registrationprofile','Can add registration profile');
INSERT INTO "auth_permission" VALUES(54,19,'change_registrationprofile','Can change registration profile');
INSERT INTO "auth_permission" VALUES(55,19,'delete_registrationprofile','Can delete registration profile');
INSERT INTO "auth_permission" VALUES(56,20,'add_captchastore','Can add captcha store');
INSERT INTO "auth_permission" VALUES(57,20,'change_captchastore','Can change captcha store');
INSERT INTO "auth_permission" VALUES(58,20,'delete_captchastore','Can delete captcha store');
INSERT INTO "auth_permission" VALUES(59,21,'add_constance','Can add constance');
INSERT INTO "auth_permission" VALUES(60,21,'change_constance','Can change constance');
INSERT INTO "auth_permission" VALUES(61,21,'delete_constance','Can delete constance');
INSERT INTO "auth_permission" VALUES(62,24,'add_email','Can add Email');
INSERT INTO "auth_permission" VALUES(63,24,'change_email','Can change Email');
INSERT INTO "auth_permission" VALUES(64,24,'delete_email','Can delete Email');
INSERT INTO "auth_permission" VALUES(65,25,'add_attachment','Can add Attachment');
INSERT INTO "auth_permission" VALUES(66,25,'change_attachment','Can change Attachment');
INSERT INTO "auth_permission" VALUES(67,25,'delete_attachment','Can delete Attachment');
INSERT INTO "auth_permission" VALUES(68,23,'add_emailtemplate','Can add Email Template');
INSERT INTO "auth_permission" VALUES(69,23,'change_emailtemplate','Can change Email Template');
INSERT INTO "auth_permission" VALUES(70,23,'delete_emailtemplate','Can delete Email Template');
INSERT INTO "auth_permission" VALUES(71,22,'add_log','Can add Log');
INSERT INTO "auth_permission" VALUES(72,22,'change_log','Can change Log');
INSERT INTO "auth_permission" VALUES(73,22,'delete_log','Can delete Log');
INSERT INTO "auth_permission" VALUES(74,26,'add_termsandconditions','Can add Terms and Conditions');
INSERT INTO "auth_permission" VALUES(75,26,'change_termsandconditions','Can change Terms and Conditions');
INSERT INTO "auth_permission" VALUES(76,26,'delete_termsandconditions','Can delete Terms and Conditions');
INSERT INTO "auth_permission" VALUES(77,27,'add_usertermsandconditions','Can add User Terms and Conditions');
INSERT INTO "auth_permission" VALUES(78,27,'change_usertermsandconditions','Can change User Terms and Conditions');
INSERT INTO "auth_permission" VALUES(79,27,'delete_usertermsandconditions','Can delete User Terms and Conditions');
INSERT INTO "auth_permission" VALUES(80,32,'add_association','Can add association');
INSERT INTO "auth_permission" VALUES(81,32,'change_association','Can change association');
INSERT INTO "auth_permission" VALUES(82,32,'delete_association','Can delete association');
INSERT INTO "auth_permission" VALUES(83,28,'add_nonce','Can add nonce');
INSERT INTO "auth_permission" VALUES(84,28,'change_nonce','Can change nonce');
INSERT INTO "auth_permission" VALUES(85,28,'delete_nonce','Can delete nonce');
INSERT INTO "auth_permission" VALUES(86,31,'add_partial','Can add partial');
INSERT INTO "auth_permission" VALUES(87,31,'change_partial','Can change partial');
INSERT INTO "auth_permission" VALUES(88,31,'delete_partial','Can delete partial');
INSERT INTO "auth_permission" VALUES(89,30,'add_code','Can add code');
INSERT INTO "auth_permission" VALUES(90,30,'change_code','Can change code');
INSERT INTO "auth_permission" VALUES(91,30,'delete_code','Can delete code');
INSERT INTO "auth_permission" VALUES(92,29,'add_usersocialauth','Can add user social auth');
INSERT INTO "auth_permission" VALUES(93,29,'change_usersocialauth','Can change user social auth');
INSERT INTO "auth_permission" VALUES(94,29,'delete_usersocialauth','Can delete user social auth');
INSERT INTO "auth_permission" VALUES(95,34,'add_tokenv2','Can add token v2');
INSERT INTO "auth_permission" VALUES(96,34,'change_tokenv2','Can change token v2');
INSERT INTO "auth_permission" VALUES(97,34,'delete_tokenv2','Can delete token v2');
INSERT INTO "auth_permission" VALUES(98,33,'add_token','Can add token');
INSERT INTO "auth_permission" VALUES(99,33,'change_token','Can change token');
INSERT INTO "auth_permission" VALUES(100,33,'delete_token','Can delete token');
INSERT INTO "auth_permission" VALUES(101,35,'add_avatar','Can add avatar');
INSERT INTO "auth_permission" VALUES(102,35,'change_avatar','Can change avatar');
INSERT INTO "auth_permission" VALUES(103,35,'delete_avatar','Can delete avatar');
INSERT INTO "auth_permission" VALUES(104,36,'add_groupavatar','Can add group avatar');
INSERT INTO "auth_permission" VALUES(105,36,'change_groupavatar','Can change group avatar');
INSERT INTO "auth_permission" VALUES(106,36,'delete_groupavatar','Can delete group avatar');
INSERT INTO "auth_permission" VALUES(107,37,'add_contact','Can add contact');
INSERT INTO "auth_permission" VALUES(108,37,'change_contact','Can change contact');
INSERT INTO "auth_permission" VALUES(109,37,'delete_contact','Can delete contact');
INSERT INTO "auth_permission" VALUES(110,38,'add_draft','Can add draft');
INSERT INTO "auth_permission" VALUES(111,38,'change_draft','Can change draft');
INSERT INTO "auth_permission" VALUES(112,38,'delete_draft','Can delete draft');
INSERT INTO "auth_permission" VALUES(113,39,'add_draftreviewer','Can add draft reviewer');
INSERT INTO "auth_permission" VALUES(114,39,'change_draftreviewer','Can change draft reviewer');
INSERT INTO "auth_permission" VALUES(115,39,'delete_draftreviewer','Can delete draft reviewer');
INSERT INTO "auth_permission" VALUES(116,41,'add_institution','Can add institution');
INSERT INTO "auth_permission" VALUES(117,41,'change_institution','Can change institution');
INSERT INTO "auth_permission" VALUES(118,41,'delete_institution','Can delete institution');
INSERT INTO "auth_permission" VALUES(119,40,'add_institutionadmin','Can add institution admin');
INSERT INTO "auth_permission" VALUES(120,40,'change_institutionadmin','Can change institution admin');
INSERT INTO "auth_permission" VALUES(121,40,'delete_institutionadmin','Can delete institution admin');
INSERT INTO "auth_permission" VALUES(122,42,'add_institutionquota','Can add institution quota');
INSERT INTO "auth_permission" VALUES(123,42,'change_institutionquota','Can change institution quota');
INSERT INTO "auth_permission" VALUES(124,42,'delete_institutionquota','Can delete institution quota');
INSERT INTO "auth_permission" VALUES(125,43,'add_invitation','Can add invitation');
INSERT INTO "auth_permission" VALUES(126,43,'change_invitation','Can change invitation');
INSERT INTO "auth_permission" VALUES(127,43,'delete_invitation','Can delete invitation');
INSERT INTO "auth_permission" VALUES(128,44,'add_personalwiki','Can add personal wiki');
INSERT INTO "auth_permission" VALUES(129,44,'change_personalwiki','Can change personal wiki');
INSERT INTO "auth_permission" VALUES(130,44,'delete_personalwiki','Can delete personal wiki');
INSERT INTO "auth_permission" VALUES(131,45,'add_wiki','Can add wiki');
INSERT INTO "auth_permission" VALUES(132,45,'change_wiki','Can change wiki');
INSERT INTO "auth_permission" VALUES(133,45,'delete_wiki','Can delete wiki');
INSERT INTO "auth_permission" VALUES(134,46,'add_groupwiki','Can add group wiki');
INSERT INTO "auth_permission" VALUES(135,46,'change_groupwiki','Can change group wiki');
INSERT INTO "auth_permission" VALUES(136,46,'delete_groupwiki','Can delete group wiki');
INSERT INTO "auth_permission" VALUES(137,50,'add_messageattachment','Can add message attachment');
INSERT INTO "auth_permission" VALUES(138,50,'change_messageattachment','Can change message attachment');
INSERT INTO "auth_permission" VALUES(139,50,'delete_messageattachment','Can delete message attachment');
INSERT INTO "auth_permission" VALUES(140,49,'add_messagereply','Can add message reply');
INSERT INTO "auth_permission" VALUES(141,49,'change_messagereply','Can change message reply');
INSERT INTO "auth_permission" VALUES(142,49,'delete_messagereply','Can delete message reply');
INSERT INTO "auth_permission" VALUES(143,47,'add_publicgroup','Can add public group');
INSERT INTO "auth_permission" VALUES(144,47,'change_publicgroup','Can change public group');
INSERT INTO "auth_permission" VALUES(145,47,'delete_publicgroup','Can delete public group');
INSERT INTO "auth_permission" VALUES(146,48,'add_groupmessage','Can add group message');
INSERT INTO "auth_permission" VALUES(147,48,'change_groupmessage','Can change group message');
INSERT INTO "auth_permission" VALUES(148,48,'delete_groupmessage','Can delete group message');
INSERT INTO "auth_permission" VALUES(149,51,'add_notification','Can add notification');
INSERT INTO "auth_permission" VALUES(150,51,'change_notification','Can change notification');
INSERT INTO "auth_permission" VALUES(151,51,'delete_notification','Can delete notification');
INSERT INTO "auth_permission" VALUES(152,52,'add_usernotification','Can add user notification');
INSERT INTO "auth_permission" VALUES(153,52,'change_usernotification','Can change user notification');
INSERT INTO "auth_permission" VALUES(154,52,'delete_usernotification','Can delete user notification');
INSERT INTO "auth_permission" VALUES(155,53,'add_useroptions','Can add user options');
INSERT INTO "auth_permission" VALUES(156,53,'change_useroptions','Can change user options');
INSERT INTO "auth_permission" VALUES(157,53,'delete_useroptions','Can delete user options');
INSERT INTO "auth_permission" VALUES(158,54,'add_detailedprofile','Can add detailed profile');
INSERT INTO "auth_permission" VALUES(159,54,'change_detailedprofile','Can change detailed profile');
INSERT INTO "auth_permission" VALUES(160,54,'delete_detailedprofile','Can delete detailed profile');
INSERT INTO "auth_permission" VALUES(161,55,'add_profile','Can add profile');
INSERT INTO "auth_permission" VALUES(162,55,'change_profile','Can change profile');
INSERT INTO "auth_permission" VALUES(163,55,'delete_profile','Can delete profile');
INSERT INTO "auth_permission" VALUES(164,56,'add_privatefiledirshare','Can add private file dir share');
INSERT INTO "auth_permission" VALUES(165,56,'change_privatefiledirshare','Can change private file dir share');
INSERT INTO "auth_permission" VALUES(166,56,'delete_privatefiledirshare','Can delete private file dir share');
INSERT INTO "auth_permission" VALUES(167,60,'add_extrasharepermission','Can add extra share permission');
INSERT INTO "auth_permission" VALUES(168,60,'change_extrasharepermission','Can change extra share permission');
INSERT INTO "auth_permission" VALUES(169,60,'delete_extrasharepermission','Can delete extra share permission');
INSERT INTO "auth_permission" VALUES(170,57,'add_fileshare','Can add file share');
INSERT INTO "auth_permission" VALUES(171,57,'change_fileshare','Can change file share');
INSERT INTO "auth_permission" VALUES(172,57,'delete_fileshare','Can delete file share');
INSERT INTO "auth_permission" VALUES(173,61,'add_extragroupssharepermission','Can add extra groups share permission');
INSERT INTO "auth_permission" VALUES(174,61,'change_extragroupssharepermission','Can change extra groups share permission');
INSERT INTO "auth_permission" VALUES(175,61,'delete_extragroupssharepermission','Can delete extra groups share permission');
INSERT INTO "auth_permission" VALUES(176,62,'add_anonymousshare','Can add anonymous share');
INSERT INTO "auth_permission" VALUES(177,62,'change_anonymousshare','Can change anonymous share');
INSERT INTO "auth_permission" VALUES(178,62,'delete_anonymousshare','Can delete anonymous share');
INSERT INTO "auth_permission" VALUES(179,58,'add_orgfileshare','Can add org file share');
INSERT INTO "auth_permission" VALUES(180,58,'change_orgfileshare','Can change org file share');
INSERT INTO "auth_permission" VALUES(181,58,'delete_orgfileshare','Can delete org file share');
INSERT INTO "auth_permission" VALUES(182,59,'add_uploadlinkshare','Can add upload link share');
INSERT INTO "auth_permission" VALUES(183,59,'change_uploadlinkshare','Can change upload link share');
INSERT INTO "auth_permission" VALUES(184,59,'delete_uploadlinkshare','Can delete upload link share');
INSERT INTO "auth_permission" VALUES(185,63,'add_adminlog','Can add admin log');
INSERT INTO "auth_permission" VALUES(186,63,'change_adminlog','Can change admin log');
INSERT INTO "auth_permission" VALUES(187,63,'delete_adminlog','Can delete admin log');
INSERT INTO "auth_permission" VALUES(188,65,'add_filetag','Can add file tag');
INSERT INTO "auth_permission" VALUES(189,65,'change_filetag','Can change file tag');
INSERT INTO "auth_permission" VALUES(190,65,'delete_filetag','Can delete file tag');
INSERT INTO "auth_permission" VALUES(191,66,'add_tags','Can add tags');
INSERT INTO "auth_permission" VALUES(192,66,'change_tags','Can change tags');
INSERT INTO "auth_permission" VALUES(193,66,'delete_tags','Can delete tags');
INSERT INTO "auth_permission" VALUES(194,64,'add_fileuuidmap','Can add file uuid map');
INSERT INTO "auth_permission" VALUES(195,64,'change_fileuuidmap','Can change file uuid map');
INSERT INTO "auth_permission" VALUES(196,64,'delete_fileuuidmap','Can delete file uuid map');
INSERT INTO "auth_permission" VALUES(197,68,'add_tags','Can add tags');
INSERT INTO "auth_permission" VALUES(198,68,'change_tags','Can change tags');
INSERT INTO "auth_permission" VALUES(199,68,'delete_tags','Can delete tags');
INSERT INTO "auth_permission" VALUES(200,67,'add_revisiontags','Can add revision tags');
INSERT INTO "auth_permission" VALUES(201,67,'change_revisiontags','Can change revision tags');
INSERT INTO "auth_permission" VALUES(202,67,'delete_revisiontags','Can delete revision tags');
INSERT INTO "auth_permission" VALUES(203,71,'add_totpdevice','Can add TOTP device');
INSERT INTO "auth_permission" VALUES(204,71,'change_totpdevice','Can change TOTP device');
INSERT INTO "auth_permission" VALUES(205,71,'delete_totpdevice','Can delete TOTP device');
INSERT INTO "auth_permission" VALUES(206,70,'add_statictoken','Can add static token');
INSERT INTO "auth_permission" VALUES(207,70,'change_statictoken','Can change static token');
INSERT INTO "auth_permission" VALUES(208,70,'delete_statictoken','Can delete static token');
INSERT INTO "auth_permission" VALUES(209,69,'add_phonedevice','Can add phone device');
INSERT INTO "auth_permission" VALUES(210,69,'change_phonedevice','Can change phone device');
INSERT INTO "auth_permission" VALUES(211,69,'delete_phonedevice','Can delete phone device');
INSERT INTO "auth_permission" VALUES(212,72,'add_staticdevice','Can add static device');
INSERT INTO "auth_permission" VALUES(213,72,'change_staticdevice','Can change static device');
INSERT INTO "auth_permission" VALUES(214,72,'delete_staticdevice','Can delete static device');
INSERT INTO "auth_permission" VALUES(215,73,'add_adminrole','Can add admin role');
INSERT INTO "auth_permission" VALUES(216,73,'change_adminrole','Can change admin role');
INSERT INTO "auth_permission" VALUES(217,73,'delete_adminrole','Can delete admin role');
INSERT INTO "auth_permission" VALUES(218,74,'add_trustedip','Can add trusted ip');
INSERT INTO "auth_permission" VALUES(219,74,'change_trustedip','Can change trusted ip');
INSERT INTO "auth_permission" VALUES(220,74,'delete_trustedip','Can delete trusted ip');
INSERT INTO "auth_permission" VALUES(221,75,'add_repotags','Can add repo tags');
INSERT INTO "auth_permission" VALUES(222,75,'change_repotags','Can change repo tags');
INSERT INTO "auth_permission" VALUES(223,75,'delete_repotags','Can delete repo tags');
INSERT INTO "auth_permission" VALUES(224,76,'add_filetags','Can add file tags');
INSERT INTO "auth_permission" VALUES(225,76,'change_filetags','Can change file tags');
INSERT INTO "auth_permission" VALUES(226,76,'delete_filetags','Can delete file tags');
INSERT INTO "auth_permission" VALUES(227,77,'add_relatedfiles','Can add related files');
INSERT INTO "auth_permission" VALUES(228,77,'change_relatedfiles','Can change related files');
INSERT INTO "auth_permission" VALUES(229,77,'delete_relatedfiles','Can delete related files');
INSERT INTO "auth_permission" VALUES(230,78,'add_userloginlog','Can add user login log');
INSERT INTO "auth_permission" VALUES(231,78,'change_userloginlog','Can change user login log');
INSERT INTO "auth_permission" VALUES(232,78,'delete_userloginlog','Can delete user login log');
INSERT INTO "auth_permission" VALUES(233,80,'add_orgmemberquota','Can add org member quota');
INSERT INTO "auth_permission" VALUES(234,80,'change_orgmemberquota','Can change org member quota');
INSERT INTO "auth_permission" VALUES(235,80,'delete_orgmemberquota','Can delete org member quota');
INSERT INTO "auth_permission" VALUES(236,79,'add_orgsettings','Can add org settings');
INSERT INTO "auth_permission" VALUES(237,79,'change_orgsettings','Can change org settings');
INSERT INTO "auth_permission" VALUES(238,79,'delete_orgsettings','Can delete org settings');
INSERT INTO "auth_permission" VALUES(239,82,'add_sessionticket','Can add session ticket');
INSERT INTO "auth_permission" VALUES(240,82,'change_sessionticket','Can change session ticket');
INSERT INTO "auth_permission" VALUES(241,82,'delete_sessionticket','Can delete session ticket');
INSERT INTO "auth_permission" VALUES(242,81,'add_proxygrantingticket','Can add proxy granting ticket');
INSERT INTO "auth_permission" VALUES(243,81,'change_proxygrantingticket','Can change proxy granting ticket');
INSERT INTO "auth_permission" VALUES(244,81,'delete_proxygrantingticket','Can delete proxy granting ticket');
INSERT INTO "auth_permission" VALUES(245,84,'add_userplan','Can add user plan');
INSERT INTO "auth_permission" VALUES(246,84,'change_userplan','Can change user plan');
INSERT INTO "auth_permission" VALUES(247,84,'delete_userplan','Can delete user plan');
INSERT INTO "auth_permission" VALUES(248,83,'add_orgplan','Can add org plan');
INSERT INTO "auth_permission" VALUES(249,83,'change_orgplan','Can change org plan');
INSERT INTO "auth_permission" VALUES(250,83,'delete_orgplan','Can delete org plan');
CREATE TABLE "auth_user" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "password" varchar(128) NOT NULL, "last_login" datetime NULL, "is_superuser" bool NOT NULL, "first_name" varchar(30) NOT NULL, "last_name" varchar(30) NOT NULL, "email" varchar(254) NOT NULL, "is_staff" bool NOT NULL, "is_active" bool NOT NULL, "date_joined" datetime NOT NULL, "username" varchar(150) NOT NULL UNIQUE);
CREATE TABLE "avatar_avatar" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "emailuser" varchar(255) NOT NULL, "primary" bool NOT NULL, "avatar" varchar(1024) NOT NULL, "date_uploaded" datetime NOT NULL);
CREATE TABLE "avatar_groupavatar" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "group_id" varchar(255) NOT NULL, "avatar" varchar(1024) NOT NULL, "date_uploaded" datetime NOT NULL);
CREATE TABLE "tags_fileuuidmap" ("uuid" char(32) NOT NULL PRIMARY KEY, "repo_id" varchar(36) NOT NULL, "repo_id_parent_path_md5" varchar(100) NOT NULL, "parent_path" text NOT NULL, "filename" varchar(1024) NOT NULL, "is_dir" bool NOT NULL);
CREATE TABLE "tags_tags" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" varchar(255) NOT NULL UNIQUE);
CREATE TABLE "tags_filetag" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "username" varchar(255) NOT NULL, "tag_id" integer NOT NULL REFERENCES "tags_tags" ("id"), "uuid_id" char(32) NOT NULL REFERENCES "tags_fileuuidmap" ("uuid"));
CREATE TABLE "group_groupmessage" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "group_id" integer NOT NULL, "from_email" varchar(255) NOT NULL, "message" text NOT NULL, "timestamp" datetime NOT NULL);
CREATE TABLE "group_messageattachment" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "repo_id" varchar(40) NOT NULL, "attach_type" varchar(5) NOT NULL, "path" text NOT NULL, "src" varchar(20) NOT NULL, "group_message_id" integer NOT NULL REFERENCES "group_groupmessage" ("id"));
CREATE TABLE "group_messagereply" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "from_email" varchar(255) NOT NULL, "message" text NOT NULL, "timestamp" datetime NOT NULL, "reply_to_id" integer NOT NULL REFERENCES "group_groupmessage" ("id"));
CREATE TABLE "group_publicgroup" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "group_id" integer NOT NULL);
CREATE TABLE "base_clientlogintoken" ("token" varchar(32) NOT NULL PRIMARY KEY, "username" varchar(255) NOT NULL, "timestamp" datetime NOT NULL);
CREATE TABLE "base_commandslastcheck" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "command_type" varchar(100) NOT NULL, "last_check" datetime NOT NULL);
CREATE TABLE "base_devicetoken" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "token" varchar(80) NOT NULL, "user" varchar(255) NOT NULL, "platform" varchar(32) NOT NULL, "version" varchar(16) NOT NULL, "pversion" varchar(16) NOT NULL);
CREATE TABLE "base_filediscuss" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "repo_id" varchar(36) NOT NULL, "path" text NOT NULL, "path_hash" varchar(12) NOT NULL, "group_message_id" integer NOT NULL REFERENCES "group_groupmessage" ("id"));
CREATE TABLE "base_groupenabledmodule" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "group_id" varchar(10) NOT NULL, "module_name" varchar(20) NOT NULL);
CREATE TABLE "base_innerpubmsg" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "from_email" varchar(254) NOT NULL, "message" varchar(500) NOT NULL, "timestamp" datetime NOT NULL);
CREATE TABLE "base_innerpubmsgreply" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "from_email" varchar(254) NOT NULL, "message" varchar(150) NOT NULL, "timestamp" datetime NOT NULL, "reply_to_id" integer NOT NULL REFERENCES "base_innerpubmsg" ("id"));
CREATE TABLE "base_userenabledmodule" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "username" varchar(255) NOT NULL, "module_name" varchar(20) NOT NULL);
CREATE TABLE "base_userlastlogin" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "username" varchar(255) NOT NULL, "last_login" datetime NOT NULL);
CREATE TABLE "base_userstarredfiles" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "email" varchar(254) NOT NULL, "org_id" integer NOT NULL, "repo_id" varchar(36) NOT NULL, "path" text NOT NULL, "is_dir" bool NOT NULL);
CREATE TABLE "base_reposecretkey" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "repo_id" varchar(36) NOT NULL UNIQUE, "secret_key" varchar(44) NOT NULL);
CREATE TABLE "base_filecomment" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "author" varchar(255) NOT NULL, "comment" text NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "uuid_id" char(32) NOT NULL REFERENCES "tags_fileuuidmap" ("uuid"), "detail" text NOT NULL, "resolved" bool NOT NULL);
CREATE TABLE "captcha_captchastore" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "challenge" varchar(32) NOT NULL, "response" varchar(32) NOT NULL, "hashkey" varchar(40) NOT NULL UNIQUE, "expiration" datetime NOT NULL);
CREATE TABLE "contacts_contact" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "user_email" varchar(255) NOT NULL, "contact_email" varchar(255) NOT NULL, "contact_name" varchar(255) NULL, "note" varchar(255) NULL);
CREATE TABLE "constance_config" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "key" varchar(255) NOT NULL UNIQUE, "value" text NOT NULL);
CREATE TABLE "django_cas_ng_sessionticket" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "session_key" varchar(255) NOT NULL, "ticket" varchar(255) NOT NULL);
CREATE TABLE "django_cas_ng_proxygrantingticket" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "session_key" varchar(255) NULL, "pgtiou" varchar(255) NULL, "pgt" varchar(255) NULL, "date" datetime NOT NULL, "user" varchar(255) NOT NULL);
CREATE TABLE "drafts_draft" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "username" varchar(255) NOT NULL, "origin_repo_id" varchar(36) NOT NULL, "origin_file_version" varchar(100) NOT NULL, "draft_file_path" varchar(1024) NOT NULL, "publish_file_version" varchar(100) NULL, "status" varchar(20) NOT NULL, "origin_file_uuid" char(32) NOT NULL);
CREATE TABLE "drafts_draftreviewer" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "reviewer" varchar(255) NOT NULL, "draft_id" integer NOT NULL REFERENCES "drafts_draft" ("id"));
CREATE TABLE "repo_tags_repotags" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "repo_id" varchar(36) NOT NULL, "name" varchar(255) NOT NULL, "color" varchar(255) NOT NULL);
CREATE TABLE "file_tags_filetags" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "file_uuid_id" char(32) NOT NULL REFERENCES "tags_fileuuidmap" ("uuid"), "repo_tag_id" integer NOT NULL REFERENCES "repo_tags_repotags" ("id"));
CREATE TABLE "institutions_institution" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" varchar(200) NOT NULL, "create_time" datetime NOT NULL);
CREATE TABLE "institutions_institutionquota" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "quota" bigint NOT NULL, "institution_id" integer NOT NULL REFERENCES "institutions_institution" ("id"));
CREATE TABLE "institutions_institutionadmin" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "institution_id" integer NOT NULL REFERENCES "institutions_institution" ("id"), "user" varchar(255) NOT NULL);
CREATE TABLE "invitations_invitation" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "token" varchar(40) NOT NULL, "inviter" varchar(255) NOT NULL, "accepter" varchar(255) NOT NULL, "invite_time" datetime NOT NULL, "accept_time" datetime NULL, "invite_type" varchar(20) NOT NULL, "expire_time" datetime NOT NULL);
CREATE TABLE "notifications_notification" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "message" varchar(512) NOT NULL, "primary" bool NOT NULL);
CREATE TABLE "notifications_usernotification" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "to_user" varchar(255) NOT NULL, "msg_type" varchar(30) NOT NULL, "detail" text NOT NULL, "seen" bool NOT NULL, "timestamp" datetime NOT NULL);
CREATE TABLE "options_useroptions" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "email" varchar(255) NOT NULL, "option_val" varchar(50) NOT NULL, "option_key" varchar(50) NOT NULL);
CREATE TABLE "organizations_orgmemberquota" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "org_id" integer NOT NULL, "quota" integer NOT NULL);
CREATE TABLE "organizations_orgsettings" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "role" varchar(100) NULL, "org_id" integer NOT NULL UNIQUE);
CREATE TABLE "post_office_attachment_emails" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "attachment_id" integer NOT NULL REFERENCES "post_office_attachment" ("id"), "email_id" integer NOT NULL REFERENCES "post_office_email" ("id"));
CREATE TABLE "post_office_email" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "from_email" varchar(254) NOT NULL, "to" text NOT NULL, "cc" text NOT NULL, "bcc" text NOT NULL, "subject" varchar(989) NOT NULL, "message" text NOT NULL, "html_message" text NOT NULL, "status" smallint unsigned NULL, "priority" smallint unsigned NULL, "created" datetime NOT NULL, "last_updated" datetime NOT NULL, "scheduled_time" datetime NULL, "headers" text NULL, "context" text NULL, "backend_alias" varchar(64) NOT NULL, "template_id" integer NULL REFERENCES "post_office_emailtemplate" ("id"));
CREATE TABLE "post_office_emailtemplate" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "description" text NOT NULL, "subject" varchar(255) NOT NULL, "content" text NOT NULL, "html_content" text NOT NULL, "created" datetime NOT NULL, "last_updated" datetime NOT NULL, "language" varchar(12) NOT NULL, "name" varchar(255) NOT NULL, "default_template_id" integer NULL REFERENCES "post_office_emailtemplate" ("id"));
CREATE TABLE "post_office_log" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "date" datetime NOT NULL, "exception_type" varchar(255) NOT NULL, "message" text NOT NULL, "email_id" integer NOT NULL REFERENCES "post_office_email" ("id"), "status" smallint unsigned NOT NULL);
CREATE TABLE "post_office_attachment" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "file" varchar(100) NOT NULL, "name" varchar(255) NOT NULL, "mimetype" varchar(255) NOT NULL);
CREATE TABLE "profile_detailedprofile" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "user" varchar(255) NOT NULL, "department" varchar(512) NOT NULL, "telephone" varchar(100) NOT NULL);
CREATE TABLE "profile_profile" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "user" varchar(254) NOT NULL UNIQUE, "nickname" varchar(64) NOT NULL, "intro" text NOT NULL, "lang_code" text NULL, "login_id" varchar(225) NULL UNIQUE, "institution" varchar(225) NULL, "list_in_address_book" bool NOT NULL, "contact_email" varchar(225) NULL UNIQUE);
CREATE TABLE "registration_registrationprofile" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "emailuser_id" integer NOT NULL, "activation_key" varchar(40) NOT NULL);
CREATE TABLE "related_files_relatedfiles" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "o_uuid_id" char(32) NOT NULL REFERENCES "tags_fileuuidmap" ("uuid"), "r_uuid_id" char(32) NOT NULL REFERENCES "tags_fileuuidmap" ("uuid"));
CREATE TABLE "revision_tag_tags" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" varchar(255) NOT NULL UNIQUE);
CREATE TABLE "revision_tag_revisiontags" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "repo_id" varchar(36) NOT NULL, "path" text NOT NULL, "revision_id" varchar(255) NOT NULL, "username" varchar(255) NOT NULL, "tag_id" integer NOT NULL REFERENCES "revision_tag_tags" ("id"));
CREATE TABLE "role_permissions_adminrole" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "email" varchar(254) NOT NULL UNIQUE, "role" varchar(255) NOT NULL);
CREATE TABLE "django_session" ("session_key" varchar(40) NOT NULL PRIMARY KEY, "session_data" text NOT NULL, "expire_date" datetime NOT NULL);
CREATE TABLE "share_anonymousshare" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "repo_owner" varchar(255) NOT NULL, "repo_id" varchar(36) NOT NULL, "anonymous_email" varchar(255) NOT NULL, "token" varchar(25) NOT NULL UNIQUE);
CREATE TABLE "share_extragroupssharepermission" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "repo_id" varchar(36) NOT NULL, "group_id" integer NOT NULL, "permission" varchar(30) NOT NULL);
CREATE TABLE "share_extrasharepermission" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "repo_id" varchar(36) NOT NULL, "share_to" varchar(255) NOT NULL, "permission" varchar(30) NOT NULL);
CREATE TABLE "share_fileshare" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "username" varchar(255) NOT NULL, "repo_id" varchar(36) NOT NULL, "path" text NOT NULL, "token" varchar(100) NOT NULL UNIQUE, "ctime" datetime NOT NULL, "view_cnt" integer NOT NULL, "s_type" varchar(2) NOT NULL, "password" varchar(128) NULL, "expire_date" datetime NULL, "permission" varchar(50) NOT NULL);
CREATE TABLE "share_orgfileshare" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "org_id" integer NOT NULL, "file_share_id" integer NOT NULL UNIQUE REFERENCES "share_fileshare" ("id"));
CREATE TABLE "share_privatefiledirshare" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "from_user" varchar(255) NOT NULL, "to_user" varchar(255) NOT NULL, "repo_id" varchar(36) NOT NULL, "path" text NOT NULL, "token" varchar(10) NOT NULL UNIQUE, "permission" varchar(5) NOT NULL, "s_type" varchar(5) NOT NULL);
CREATE TABLE "share_uploadlinkshare" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "username" varchar(255) NOT NULL, "repo_id" varchar(36) NOT NULL, "path" text NOT NULL, "token" varchar(100) NOT NULL UNIQUE, "ctime" datetime NOT NULL, "view_cnt" integer NOT NULL, "password" varchar(128) NULL, "expire_date" datetime NULL);
CREATE TABLE "social_auth_association" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "server_url" varchar(255) NOT NULL, "handle" varchar(255) NOT NULL, "secret" varchar(255) NOT NULL, "issued" integer NOT NULL, "lifetime" integer NOT NULL, "assoc_type" varchar(64) NOT NULL);
CREATE TABLE "social_auth_code" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "email" varchar(254) NOT NULL, "code" varchar(32) NOT NULL, "verified" bool NOT NULL, "timestamp" datetime NOT NULL);
CREATE TABLE "social_auth_nonce" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "server_url" varchar(255) NOT NULL, "timestamp" integer NOT NULL, "salt" varchar(65) NOT NULL);
CREATE TABLE "social_auth_partial" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "token" varchar(32) NOT NULL, "next_step" smallint unsigned NOT NULL, "backend" varchar(32) NOT NULL, "data" text NOT NULL, "timestamp" datetime NOT NULL);
CREATE TABLE "social_auth_usersocialauth" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "username" varchar(255) NOT NULL, "provider" varchar(32) NOT NULL, "uid" varchar(255) NOT NULL, "extra_data" text NOT NULL);
CREATE TABLE "sysadmin_extra_userloginlog" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "username" varchar(255) NOT NULL, "login_date" datetime NOT NULL, "login_ip" varchar(128) NOT NULL, "login_success" bool NOT NULL);
CREATE TABLE "termsandconditions_termsandconditions" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "slug" varchar(50) NOT NULL, "name" text NOT NULL, "version_number" decimal NOT NULL, "text" text NULL, "info" text NULL, "date_active" datetime NULL, "date_created" datetime NOT NULL);
CREATE TABLE "termsandconditions_usertermsandconditions" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "username" varchar(255) NOT NULL, "ip_address" char(39) NULL, "date_accepted" datetime NOT NULL, "terms_id" integer NOT NULL REFERENCES "termsandconditions_termsandconditions" ("id"));
CREATE TABLE "trusted_ip_trustedip" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "ip" varchar(255) NOT NULL);
CREATE TABLE "two_factor_phonedevice" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "user" varchar(255) NOT NULL UNIQUE, "name" varchar(64) NOT NULL, "confirmed" bool NOT NULL, "number" varchar(40) NOT NULL, "key" varchar(40) NOT NULL, "method" varchar(4) NOT NULL);
CREATE TABLE "two_factor_staticdevice" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "user" varchar(255) NOT NULL UNIQUE, "name" varchar(64) NOT NULL, "confirmed" bool NOT NULL);
CREATE TABLE "two_factor_statictoken" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "token" varchar(16) NOT NULL, "device_id" integer NOT NULL REFERENCES "two_factor_staticdevice" ("id"));
CREATE TABLE "two_factor_totpdevice" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "user" varchar(255) NOT NULL UNIQUE, "name" varchar(64) NOT NULL, "confirmed" bool NOT NULL, "key" varchar(80) NOT NULL, "step" smallint unsigned NOT NULL, "t0" bigint NOT NULL, "digits" smallint unsigned NOT NULL, "tolerance" smallint unsigned NOT NULL, "drift" smallint NOT NULL, "last_t" bigint NOT NULL);
CREATE TABLE "wiki_groupwiki" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "group_id" integer NOT NULL UNIQUE, "repo_id" varchar(36) NOT NULL);
CREATE TABLE "wiki_personalwiki" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "username" varchar(255) NOT NULL UNIQUE, "repo_id" varchar(36) NOT NULL);
CREATE TABLE "wiki_wiki" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "username" varchar(255) NOT NULL, "name" varchar(255) NOT NULL, "slug" varchar(255) NOT NULL UNIQUE, "permission" varchar(50) NOT NULL, "created_at" datetime NOT NULL, "repo_id" varchar(36) NOT NULL);
DELETE FROM sqlite_sequence;
INSERT INTO "sqlite_sequence" VALUES('django_migrations',67);
INSERT INTO "sqlite_sequence" VALUES('django_content_type',84);
INSERT INTO "sqlite_sequence" VALUES('auth_permission',250);
INSERT INTO "sqlite_sequence" VALUES('auth_user',0);
INSERT INTO "sqlite_sequence" VALUES('tags_filetag',0);
INSERT INTO "sqlite_sequence" VALUES('base_filecomment',0);
INSERT INTO "sqlite_sequence" VALUES('django_cas_ng_proxygrantingticket',0);
INSERT INTO "sqlite_sequence" VALUES('drafts_draft',0);
INSERT INTO "sqlite_sequence" VALUES('drafts_draftreviewer',0);
INSERT INTO "sqlite_sequence" VALUES('file_tags_filetags',0);
INSERT INTO "sqlite_sequence" VALUES('institutions_institutionadmin',0);
INSERT INTO "sqlite_sequence" VALUES('invitations_invitation',0);
INSERT INTO "sqlite_sequence" VALUES('notifications_notification',0);
INSERT INTO "sqlite_sequence" VALUES('notifications_usernotification',0);
INSERT INTO "sqlite_sequence" VALUES('options_useroptions',0);
INSERT INTO "sqlite_sequence" VALUES('organizations_orgsettings',0);
INSERT INTO "sqlite_sequence" VALUES('post_office_attachment_emails',0);
INSERT INTO "sqlite_sequence" VALUES('post_office_email',0);
INSERT INTO "sqlite_sequence" VALUES('post_office_emailtemplate',0);
INSERT INTO "sqlite_sequence" VALUES('post_office_log',0);
INSERT INTO "sqlite_sequence" VALUES('post_office_attachment',0);
INSERT INTO "sqlite_sequence" VALUES('profile_profile',0);
INSERT INTO "sqlite_sequence" VALUES('revision_tag_revisiontags',0);
INSERT INTO "sqlite_sequence" VALUES('wiki_wiki',0);
CREATE INDEX "admin_log_adminlog_email_7213c993" ON "admin_log_adminlog" ("email");
CREATE INDEX "admin_log_adminlog_operation_4bad7bd1" ON "admin_log_adminlog" ("operation");
CREATE UNIQUE INDEX "api2_tokenv2_user_platform_device_id_37005c24_uniq" ON "api2_tokenv2" ("user", "platform", "device_id");
CREATE UNIQUE INDEX "django_content_type_app_label_model_76bd3d3b_uniq" ON "django_content_type" ("app_label", "model");
CREATE UNIQUE INDEX "auth_group_permissions_group_id_permission_id_0cd325b0_uniq" ON "auth_group_permissions" ("group_id", "permission_id");
CREATE INDEX "auth_group_permissions_group_id_b120cbf9" ON "auth_group_permissions" ("group_id");
CREATE INDEX "auth_group_permissions_permission_id_84c5c92e" ON "auth_group_permissions" ("permission_id");
CREATE UNIQUE INDEX "auth_user_groups_user_id_group_id_94350c0c_uniq" ON "auth_user_groups" ("user_id", "group_id");
CREATE INDEX "auth_user_groups_user_id_6a12ed8b" ON "auth_user_groups" ("user_id");
CREATE INDEX "auth_user_groups_group_id_97559544" ON "auth_user_groups" ("group_id");
CREATE UNIQUE INDEX "auth_user_user_permissions_user_id_permission_id_14a6b632_uniq" ON "auth_user_user_permissions" ("user_id", "permission_id");
CREATE INDEX "auth_user_user_permissions_user_id_a95ead1b" ON "auth_user_user_permissions" ("user_id");
CREATE INDEX "auth_user_user_permissions_permission_id_1fbb5f2c" ON "auth_user_user_permissions" ("permission_id");
CREATE UNIQUE INDEX "auth_permission_content_type_id_codename_01ab375a_uniq" ON "auth_permission" ("content_type_id", "codename");
CREATE INDEX "auth_permission_content_type_id_2f476e4b" ON "auth_permission" ("content_type_id");
CREATE INDEX "tags_fileuuidmap_repo_id_ac67aa33" ON "tags_fileuuidmap" ("repo_id");
CREATE INDEX "tags_fileuuidmap_repo_id_parent_path_md5_c8bb0860" ON "tags_fileuuidmap" ("repo_id_parent_path_md5");
CREATE INDEX "tags_filetag_tag_id_0f264fc9" ON "tags_filetag" ("tag_id");
CREATE INDEX "tags_filetag_uuid_id_2aa2266c" ON "tags_filetag" ("uuid_id");
CREATE INDEX "group_groupmessage_group_id_acc24329" ON "group_groupmessage" ("group_id");
CREATE INDEX "group_messageattachment_group_message_id_6edb6096" ON "group_messageattachment" ("group_message_id");
CREATE INDEX "group_messagereply_reply_to_id_6562f0ac" ON "group_messagereply" ("reply_to_id");
CREATE INDEX "group_publicgroup_group_id_c91e54ce" ON "group_publicgroup" ("group_id");
CREATE UNIQUE INDEX "base_devicetoken_token_user_38535636_uniq" ON "base_devicetoken" ("token", "user");
CREATE INDEX "base_clientlogintoken_username_4ad5d42c" ON "base_clientlogintoken" ("username");
CREATE INDEX "base_filediscuss_path_hash_fd9f7348" ON "base_filediscuss" ("path_hash");
CREATE INDEX "base_filediscuss_group_message_id_2f7d7046" ON "base_filediscuss" ("group_message_id");
CREATE INDEX "base_groupenabledmodule_group_id_8c06b5bc" ON "base_groupenabledmodule" ("group_id");
CREATE INDEX "base_innerpubmsgreply_reply_to_id_62ce6fe5" ON "base_innerpubmsgreply" ("reply_to_id");
CREATE INDEX "base_userenabledmodule_username_4f1c3c88" ON "base_userenabledmodule" ("username");
CREATE INDEX "base_userlastlogin_username_270de06f" ON "base_userlastlogin" ("username");
CREATE INDEX "base_userstarredfiles_email_29e69053" ON "base_userstarredfiles" ("email");
CREATE INDEX "base_userstarredfiles_repo_id_f5ecc00a" ON "base_userstarredfiles" ("repo_id");
CREATE INDEX "base_filecomment_author_8a4d7e91" ON "base_filecomment" ("author");
CREATE INDEX "base_filecomment_uuid_id_4f9a2ca2" ON "base_filecomment" ("uuid_id");
CREATE INDEX "base_filecomment_resolved_e0717eca" ON "base_filecomment" ("resolved");
CREATE INDEX "contacts_contact_user_email_149035d4" ON "contacts_contact" ("user_email");
CREATE UNIQUE INDEX "django_cas_ng_proxygrantingticket_session_key_user_8a4ec2bc_uniq" ON "django_cas_ng_proxygrantingticket" ("session_key", "user");
CREATE INDEX "django_cas_ng_proxygrantingticket_user_1f42619d" ON "django_cas_ng_proxygrantingticket" ("user");
CREATE INDEX "drafts_draft_created_at_e9f4523f" ON "drafts_draft" ("created_at");
CREATE INDEX "drafts_draft_updated_at_0a144b05" ON "drafts_draft" ("updated_at");
CREATE INDEX "drafts_draft_username_73e6738b" ON "drafts_draft" ("username");
CREATE INDEX "drafts_draft_origin_file_uuid_7c003c98" ON "drafts_draft" ("origin_file_uuid");
CREATE INDEX "drafts_draftreviewer_reviewer_e4c777ac" ON "drafts_draftreviewer" ("reviewer");
CREATE INDEX "drafts_draftreviewer_draft_id_4ea59775" ON "drafts_draftreviewer" ("draft_id");
CREATE INDEX "repo_tags_repotags_repo_id_1163a48f" ON "repo_tags_repotags" ("repo_id");
CREATE INDEX "repo_tags_repotags_name_3f4c9027" ON "repo_tags_repotags" ("name");
CREATE INDEX "repo_tags_repotags_color_1292b6c1" ON "repo_tags_repotags" ("color");
CREATE INDEX "file_tags_filetags_file_uuid_id_e30f0ec8" ON "file_tags_filetags" ("file_uuid_id");
CREATE INDEX "file_tags_filetags_repo_tag_id_c39660cb" ON "file_tags_filetags" ("repo_tag_id");
CREATE INDEX "institutions_institutionquota_institution_id_d23201d9" ON "institutions_institutionquota" ("institution_id");
CREATE INDEX "institutions_institutionadmin_institution_id_1e9bb58b" ON "institutions_institutionadmin" ("institution_id");
CREATE INDEX "institutions_institutionadmin_user_c71d766d" ON "institutions_institutionadmin" ("user");
CREATE INDEX "invitations_invitation_token_25a92a38" ON "invitations_invitation" ("token");
CREATE INDEX "invitations_invitation_inviter_b0a7b855" ON "invitations_invitation" ("inviter");
CREATE INDEX "notifications_notification_primary_4f95ec21" ON "notifications_notification" ("primary");
CREATE INDEX "notifications_usernotification_to_user_6cadafa1" ON "notifications_usernotification" ("to_user");
CREATE INDEX "notifications_usernotification_msg_type_985afd02" ON "notifications_usernotification" ("msg_type");
CREATE INDEX "notifications_usernotification_timestamp_125067e8" ON "notifications_usernotification" ("timestamp");
CREATE INDEX "options_useroptions_email_77d5726a" ON "options_useroptions" ("email");
CREATE INDEX "options_useroptions_option_key_7bf7ae4b" ON "options_useroptions" ("option_key");
CREATE INDEX "organizations_orgmemberquota_org_id_93dde51d" ON "organizations_orgmemberquota" ("org_id");
CREATE UNIQUE INDEX "post_office_attachment_emails_attachment_id_email_id_8e046917_uniq" ON "post_office_attachment_emails" ("attachment_id", "email_id");
CREATE INDEX "post_office_attachment_emails_attachment_id_6136fd9a" ON "post_office_attachment_emails" ("attachment_id");
CREATE INDEX "post_office_attachment_emails_email_id_96875fd9" ON "post_office_attachment_emails" ("email_id");
CREATE INDEX "post_office_email_status_013a896c" ON "post_office_email" ("status");
CREATE INDEX "post_office_email_created_1306952f" ON "post_office_email" ("created");
CREATE INDEX "post_office_email_last_updated_0ffcec35" ON "post_office_email" ("last_updated");
CREATE INDEX "post_office_email_scheduled_time_3869ebec" ON "post_office_email" ("scheduled_time");
CREATE INDEX "post_office_email_template_id_417da7da" ON "post_office_email" ("template_id");
CREATE INDEX "post_office_emailtemplate_default_template_id_2ac2f889" ON "post_office_emailtemplate" ("default_template_id");
CREATE INDEX "post_office_log_email_id_d42c8808" ON "post_office_log" ("email_id");
CREATE UNIQUE INDEX "post_office_emailtemplate_name_language_default_template_id_4023e3e4_uniq" ON "post_office_emailtemplate" ("name", "language", "default_template_id");
CREATE INDEX "profile_detailedprofile_user_612c11ba" ON "profile_detailedprofile" ("user");
CREATE INDEX "profile_profile_institution_c0286bd1" ON "profile_profile" ("institution");
CREATE INDEX "profile_profile_list_in_address_book_b1009a78" ON "profile_profile" ("list_in_address_book");
CREATE INDEX "related_files_relatedfiles_o_uuid_id_aaa8e613" ON "related_files_relatedfiles" ("o_uuid_id");
CREATE INDEX "related_files_relatedfiles_r_uuid_id_031751df" ON "related_files_relatedfiles" ("r_uuid_id");
CREATE INDEX "revision_tag_revisiontags_repo_id_212c0c69" ON "revision_tag_revisiontags" ("repo_id");
CREATE INDEX "revision_tag_revisiontags_revision_id_fd9fe0f9" ON "revision_tag_revisiontags" ("revision_id");
CREATE INDEX "revision_tag_revisiontags_username_3007d29e" ON "revision_tag_revisiontags" ("username");
CREATE INDEX "revision_tag_revisiontags_tag_id_ee4e9b00" ON "revision_tag_revisiontags" ("tag_id");
CREATE INDEX "django_session_expire_date_a5c62663" ON "django_session" ("expire_date");
CREATE INDEX "share_extragroupssharepermission_repo_id_38dbaea1" ON "share_extragroupssharepermission" ("repo_id");
CREATE INDEX "share_extragroupssharepermission_group_id_6ca34bb2" ON "share_extragroupssharepermission" ("group_id");
CREATE INDEX "share_extrasharepermission_repo_id_23cc10fc" ON "share_extrasharepermission" ("repo_id");
CREATE INDEX "share_extrasharepermission_share_to_823c16cb" ON "share_extrasharepermission" ("share_to");
CREATE INDEX "share_fileshare_username_5cb6de75" ON "share_fileshare" ("username");
CREATE INDEX "share_fileshare_repo_id_9b5ae27a" ON "share_fileshare" ("repo_id");
CREATE INDEX "share_fileshare_s_type_724eb6c1" ON "share_fileshare" ("s_type");
CREATE INDEX "share_fileshare_permission_d12c353f" ON "share_fileshare" ("permission");
CREATE INDEX "share_orgfileshare_org_id_8d17998c" ON "share_orgfileshare" ("org_id");
CREATE INDEX "share_privatefiledirshare_from_user_d568d535" ON "share_privatefiledirshare" ("from_user");
CREATE INDEX "share_privatefiledirshare_to_user_2a92a044" ON "share_privatefiledirshare" ("to_user");
CREATE INDEX "share_privatefiledirshare_repo_id_97c5cb6f" ON "share_privatefiledirshare" ("repo_id");
CREATE INDEX "share_uploadlinkshare_username_3203c243" ON "share_uploadlinkshare" ("username");
CREATE INDEX "share_uploadlinkshare_repo_id_c519f857" ON "share_uploadlinkshare" ("repo_id");
CREATE UNIQUE INDEX "social_auth_usersocialauth_provider_uid_e6b5e668_uniq" ON "social_auth_usersocialauth" ("provider", "uid");
CREATE UNIQUE INDEX "social_auth_nonce_server_url_timestamp_salt_f6284463_uniq" ON "social_auth_nonce" ("server_url", "timestamp", "salt");
CREATE UNIQUE INDEX "social_auth_code_email_code_801b2d02_uniq" ON "social_auth_code" ("email", "code");
CREATE UNIQUE INDEX "social_auth_association_server_url_handle_078befa2_uniq" ON "social_auth_association" ("server_url", "handle");
CREATE INDEX "social_auth_code_code_a2393167" ON "social_auth_code" ("code");
CREATE INDEX "social_auth_code_timestamp_176b341f" ON "social_auth_code" ("timestamp");
CREATE INDEX "social_auth_partial_token_3017fea3" ON "social_auth_partial" ("token");
CREATE INDEX "social_auth_partial_timestamp_50f2119f" ON "social_auth_partial" ("timestamp");
CREATE INDEX "social_auth_usersocialauth_username_3f06b5cf" ON "social_auth_usersocialauth" ("username");
CREATE INDEX "sysadmin_extra_userloginlog_username_5748b9e3" ON "sysadmin_extra_userloginlog" ("username");
CREATE INDEX "sysadmin_extra_userloginlog_login_date_c171d790" ON "sysadmin_extra_userloginlog" ("login_date");
CREATE UNIQUE INDEX "termsandconditions_usertermsandconditions_username_terms_id_a7dabb70_uniq" ON "termsandconditions_usertermsandconditions" ("username", "terms_id");
CREATE INDEX "termsandconditions_termsandconditions_slug_489d1e9d" ON "termsandconditions_termsandconditions" ("slug");
CREATE INDEX "termsandconditions_usertermsandconditions_terms_id_eacdbcc7" ON "termsandconditions_usertermsandconditions" ("terms_id");
CREATE INDEX "trusted_ip_trustedip_ip_e898970c" ON "trusted_ip_trustedip" ("ip");
CREATE INDEX "two_factor_statictoken_token_2ade1084" ON "two_factor_statictoken" ("token");
CREATE INDEX "two_factor_statictoken_device_id_93095b45" ON "two_factor_statictoken" ("device_id");
CREATE UNIQUE INDEX "wiki_wiki_username_repo_id_4c8925af_uniq" ON "wiki_wiki" ("username", "repo_id");
CREATE INDEX "wiki_wiki_created_at_54930e39" ON "wiki_wiki" ("created_at");
CREATE INDEX "wiki_wiki_repo_id_2ee93c37" ON "wiki_wiki" ("repo_id");
COMMIT;
