mirror of
https://github.com/haiwen/seahub.git
synced 2025-05-13 10:25:46 +00:00
[sql] Update mysql/sqlite
This commit is contained in:
parent
bcdb3c90ff
commit
02c0d2834d
351
sql/mysql.sql
351
sql/mysql.sql
File diff suppressed because one or more lines are too long
682
sql/sqlite3.sql
682
sql/sqlite3.sql
@ -1,226 +1,504 @@
|
||||
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','2017-09-25 05:15:11.274464');
|
||||
INSERT INTO "django_migrations" VALUES(2,'captcha','0001_initial','2017-09-25 05:15:11.282693');
|
||||
INSERT INTO "django_migrations" VALUES(3,'contenttypes','0001_initial','2017-09-25 05:15:11.299005');
|
||||
INSERT INTO "django_migrations" VALUES(4,'contenttypes','0002_remove_content_type_name','2017-09-25 05:15:11.333309');
|
||||
INSERT INTO "django_migrations" VALUES(5,'database','0001_initial','2017-09-25 05:15:11.343225');
|
||||
INSERT INTO "django_migrations" VALUES(6,'institutions','0001_initial','2017-09-25 05:15:11.375638');
|
||||
INSERT INTO "django_migrations" VALUES(7,'institutions','0002_institutionquota','2017-09-25 05:15:11.390670');
|
||||
INSERT INTO "django_migrations" VALUES(8,'invitations','0001_initial','2017-09-25 05:15:11.462708');
|
||||
INSERT INTO "django_migrations" VALUES(9,'invitations','0002_invitation_invite_type','2017-09-25 05:15:11.475679');
|
||||
INSERT INTO "django_migrations" VALUES(10,'invitations','0003_auto_20160510_1703','2017-09-25 05:15:11.493852');
|
||||
INSERT INTO "django_migrations" VALUES(11,'invitations','0004_auto_20160629_1610','2017-09-25 05:15:11.524141');
|
||||
INSERT INTO "django_migrations" VALUES(12,'invitations','0005_auto_20160629_1614','2017-09-25 05:15:11.535737');
|
||||
INSERT INTO "django_migrations" VALUES(13,'post_office','0001_initial','2017-09-25 05:15:11.624490');
|
||||
INSERT INTO "django_migrations" VALUES(14,'post_office','0002_add_i18n_and_backend_alias','2017-09-25 05:15:11.927851');
|
||||
INSERT INTO "django_migrations" VALUES(15,'post_office','0003_auto_20170725_0206','2017-09-25 05:15:11.947859');
|
||||
INSERT INTO "django_migrations" VALUES(16,'role_permissions','0001_initial','2017-09-25 05:15:11.959526');
|
||||
INSERT INTO "django_migrations" VALUES(17,'sessions','0001_initial','2017-09-25 05:15:11.983224');
|
||||
INSERT INTO "django_migrations" VALUES(18,'termsandconditions','0001_initial','2017-09-25 05:15:12.024418');
|
||||
CREATE TABLE "registration_registrationprofile" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "emailuser_id" integer NOT NULL, "activation_key" varchar(40) NOT NULL);
|
||||
INSERT INTO "django_migrations" VALUES(1,'admin_log','0001_initial','2018-04-26 07:54:03.567663');
|
||||
INSERT INTO "django_migrations" VALUES(2,'api2','0001_initial','2018-04-26 07:54:03.656897');
|
||||
INSERT INTO "django_migrations" VALUES(3,'contenttypes','0001_initial','2018-04-26 07:54:03.692763');
|
||||
INSERT INTO "django_migrations" VALUES(4,'contenttypes','0002_remove_content_type_name','2018-04-26 07:54:03.757687');
|
||||
INSERT INTO "django_migrations" VALUES(5,'auth','0001_initial','2018-04-26 07:54:03.830311');
|
||||
INSERT INTO "django_migrations" VALUES(6,'auth','0002_alter_permission_name_max_length','2018-04-26 07:54:03.873552');
|
||||
INSERT INTO "django_migrations" VALUES(7,'auth','0003_alter_user_email_max_length','2018-04-26 07:54:03.916762');
|
||||
INSERT INTO "django_migrations" VALUES(8,'auth','0004_alter_user_username_opts','2018-04-26 07:54:03.970467');
|
||||
INSERT INTO "django_migrations" VALUES(9,'auth','0005_alter_user_last_login_null','2018-04-26 07:54:04.009708');
|
||||
INSERT INTO "django_migrations" VALUES(10,'auth','0006_require_contenttypes_0002','2018-04-26 07:54:04.023718');
|
||||
INSERT INTO "django_migrations" VALUES(11,'auth','0007_alter_validators_add_error_messages','2018-04-26 07:54:04.065211');
|
||||
INSERT INTO "django_migrations" VALUES(12,'auth','0008_alter_user_username_max_length','2018-04-26 07:54:04.106460');
|
||||
INSERT INTO "django_migrations" VALUES(13,'avatar','0001_initial','2018-04-26 07:54:04.146069');
|
||||
INSERT INTO "django_migrations" VALUES(14,'tags','0001_initial','2018-04-26 07:54:04.219958');
|
||||
INSERT INTO "django_migrations" VALUES(15,'group','0001_initial','2018-04-26 07:54:04.277966');
|
||||
INSERT INTO "django_migrations" VALUES(16,'base','0001_initial','2018-04-26 07:54:04.413632');
|
||||
INSERT INTO "django_migrations" VALUES(17,'captcha','0001_initial','2018-04-26 07:54:04.441113');
|
||||
INSERT INTO "django_migrations" VALUES(18,'contacts','0001_initial','2018-04-26 07:54:04.473602');
|
||||
INSERT INTO "django_migrations" VALUES(19,'database','0001_initial','2018-04-26 07:54:04.504721');
|
||||
INSERT INTO "django_migrations" VALUES(20,'institutions','0001_initial','2018-04-26 07:54:04.553966');
|
||||
INSERT INTO "django_migrations" VALUES(21,'institutions','0002_institutionquota','2018-04-26 07:54:04.588771');
|
||||
INSERT INTO "django_migrations" VALUES(22,'institutions','0003_auto_20180426_0710','2018-04-26 07:54:04.629723');
|
||||
INSERT INTO "django_migrations" VALUES(23,'invitations','0001_initial','2018-04-26 07:54:04.660285');
|
||||
INSERT INTO "django_migrations" VALUES(24,'invitations','0002_invitation_invite_type','2018-04-26 07:54:04.703854');
|
||||
INSERT INTO "django_migrations" VALUES(25,'invitations','0003_auto_20160510_1703','2018-04-26 07:54:04.757231');
|
||||
INSERT INTO "django_migrations" VALUES(26,'invitations','0004_auto_20160629_1610','2018-04-26 07:54:04.817422');
|
||||
INSERT INTO "django_migrations" VALUES(27,'invitations','0005_auto_20160629_1614','2018-04-26 07:54:04.857951');
|
||||
INSERT INTO "django_migrations" VALUES(28,'notifications','0001_initial','2018-04-26 07:54:04.905471');
|
||||
INSERT INTO "django_migrations" VALUES(29,'notifications','0002_auto_20180426_0710','2018-04-26 07:54:04.943214');
|
||||
INSERT INTO "django_migrations" VALUES(30,'options','0001_initial','2018-04-26 07:54:04.979914');
|
||||
INSERT INTO "django_migrations" VALUES(31,'post_office','0001_initial','2018-04-26 07:54:05.082906');
|
||||
INSERT INTO "django_migrations" VALUES(32,'post_office','0002_add_i18n_and_backend_alias','2018-04-26 07:54:05.346280');
|
||||
INSERT INTO "django_migrations" VALUES(33,'post_office','0003_longer_subject','2018-04-26 07:54:05.397151');
|
||||
INSERT INTO "django_migrations" VALUES(34,'post_office','0004_auto_20160607_0901','2018-04-26 07:54:05.873262');
|
||||
INSERT INTO "django_migrations" VALUES(35,'post_office','0005_auto_20170515_0013','2018-04-26 07:54:05.903024');
|
||||
INSERT INTO "django_migrations" VALUES(36,'post_office','0006_attachment_mimetype','2018-04-26 07:54:05.939509');
|
||||
INSERT INTO "django_migrations" VALUES(37,'profile','0001_initial','2018-04-26 07:54:05.986391');
|
||||
INSERT INTO "django_migrations" VALUES(38,'registration','0001_initial','2018-04-26 07:54:06.021591');
|
||||
INSERT INTO "django_migrations" VALUES(39,'revision_tag','0001_initial','2018-04-26 07:54:06.098989');
|
||||
INSERT INTO "django_migrations" VALUES(40,'role_permissions','0001_initial','2018-04-26 07:54:06.127450');
|
||||
INSERT INTO "django_migrations" VALUES(41,'sessions','0001_initial','2018-04-26 07:54:06.163327');
|
||||
INSERT INTO "django_migrations" VALUES(42,'share','0001_initial','2018-04-26 07:54:06.281444');
|
||||
INSERT INTO "django_migrations" VALUES(43,'sysadmin_extra','0001_initial','2018-04-26 07:54:06.313919');
|
||||
INSERT INTO "django_migrations" VALUES(44,'termsandconditions','0001_initial','2018-04-26 07:54:06.397397');
|
||||
INSERT INTO "django_migrations" VALUES(45,'trusted_ip','0001_initial','2018-04-26 07:54:06.428646');
|
||||
INSERT INTO "django_migrations" VALUES(46,'two_factor','0001_initial','2018-04-26 07:54:06.509927');
|
||||
INSERT INTO "django_migrations" VALUES(47,'wiki','0001_initial','2018-04-26 07:54:06.559094');
|
||||
INSERT INTO "django_migrations" VALUES(48,'wiki','0002_auto_20180326_0548','2018-04-26 07:54:06.625018');
|
||||
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, UNIQUE ("user", "platform", "device_id"));
|
||||
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,'auth','group');
|
||||
INSERT INTO "django_content_type" VALUES(5,'auth','user');
|
||||
INSERT INTO "django_content_type" VALUES(6,'auth','permission');
|
||||
INSERT INTO "django_content_type" VALUES(7,'registration','registrationprofile');
|
||||
INSERT INTO "django_content_type" VALUES(8,'captcha','captchastore');
|
||||
INSERT INTO "django_content_type" VALUES(9,'database','constance');
|
||||
INSERT INTO "django_content_type" VALUES(10,'post_office','log');
|
||||
INSERT INTO "django_content_type" VALUES(11,'post_office','emailtemplate');
|
||||
INSERT INTO "django_content_type" VALUES(12,'post_office','email');
|
||||
INSERT INTO "django_content_type" VALUES(13,'post_office','attachment');
|
||||
INSERT INTO "django_content_type" VALUES(14,'termsandconditions','termsandconditions');
|
||||
INSERT INTO "django_content_type" VALUES(15,'termsandconditions','usertermsandconditions');
|
||||
INSERT INTO "django_content_type" VALUES(16,'api2','token');
|
||||
INSERT INTO "django_content_type" VALUES(17,'api2','tokenv2');
|
||||
INSERT INTO "django_content_type" VALUES(18,'avatar','avatar');
|
||||
INSERT INTO "django_content_type" VALUES(19,'avatar','groupavatar');
|
||||
INSERT INTO "django_content_type" VALUES(20,'base','groupenabledmodule');
|
||||
INSERT INTO "django_content_type" VALUES(21,'base','clientlogintoken');
|
||||
INSERT INTO "django_content_type" VALUES(22,'base','commandslastcheck');
|
||||
INSERT INTO "django_content_type" VALUES(23,'base','userenabledmodule');
|
||||
INSERT INTO "django_content_type" VALUES(24,'base','filecomment');
|
||||
INSERT INTO "django_content_type" VALUES(25,'base','userstarredfiles');
|
||||
INSERT INTO "django_content_type" VALUES(26,'base','filediscuss');
|
||||
INSERT INTO "django_content_type" VALUES(27,'base','innerpubmsg');
|
||||
INSERT INTO "django_content_type" VALUES(28,'base','innerpubmsgreply');
|
||||
INSERT INTO "django_content_type" VALUES(29,'base','userlastlogin');
|
||||
INSERT INTO "django_content_type" VALUES(30,'base','devicetoken');
|
||||
INSERT INTO "django_content_type" VALUES(31,'contacts','contact');
|
||||
INSERT INTO "django_content_type" VALUES(32,'institutions','institutionadmin');
|
||||
INSERT INTO "django_content_type" VALUES(33,'institutions','institution');
|
||||
INSERT INTO "django_content_type" VALUES(34,'institutions','institutionquota');
|
||||
INSERT INTO "django_content_type" VALUES(35,'invitations','invitation');
|
||||
INSERT INTO "django_content_type" VALUES(36,'wiki','personalwiki');
|
||||
INSERT INTO "django_content_type" VALUES(37,'wiki','wiki');
|
||||
INSERT INTO "django_content_type" VALUES(38,'wiki','groupwiki');
|
||||
INSERT INTO "django_content_type" VALUES(39,'group','publicgroup');
|
||||
INSERT INTO "django_content_type" VALUES(40,'group','groupmessage');
|
||||
INSERT INTO "django_content_type" VALUES(41,'group','messagereply');
|
||||
INSERT INTO "django_content_type" VALUES(42,'group','messageattachment');
|
||||
INSERT INTO "django_content_type" VALUES(43,'notifications','notification');
|
||||
INSERT INTO "django_content_type" VALUES(44,'notifications','usernotification');
|
||||
INSERT INTO "django_content_type" VALUES(45,'options','useroptions');
|
||||
INSERT INTO "django_content_type" VALUES(46,'profile','detailedprofile');
|
||||
INSERT INTO "django_content_type" VALUES(47,'profile','profile');
|
||||
INSERT INTO "django_content_type" VALUES(48,'share','privatefiledirshare');
|
||||
INSERT INTO "django_content_type" VALUES(49,'share','fileshare');
|
||||
INSERT INTO "django_content_type" VALUES(50,'share','orgfileshare');
|
||||
INSERT INTO "django_content_type" VALUES(51,'share','uploadlinkshare');
|
||||
INSERT INTO "django_content_type" VALUES(52,'share','extrasharepermission');
|
||||
INSERT INTO "django_content_type" VALUES(53,'share','extragroupssharepermission');
|
||||
INSERT INTO "django_content_type" VALUES(54,'share','anonymousshare');
|
||||
INSERT INTO "django_content_type" VALUES(55,'admin_log','adminlog');
|
||||
INSERT INTO "django_content_type" VALUES(56,'tags','fileuuidmap');
|
||||
INSERT INTO "django_content_type" VALUES(57,'tags','filetag');
|
||||
INSERT INTO "django_content_type" VALUES(58,'tags','tags');
|
||||
INSERT INTO "django_content_type" VALUES(59,'revision_tag','revisiontags');
|
||||
INSERT INTO "django_content_type" VALUES(60,'revision_tag','tags');
|
||||
INSERT INTO "django_content_type" VALUES(61,'two_factor','phonedevice');
|
||||
INSERT INTO "django_content_type" VALUES(62,'two_factor','statictoken');
|
||||
INSERT INTO "django_content_type" VALUES(63,'two_factor','totpdevice');
|
||||
INSERT INTO "django_content_type" VALUES(64,'two_factor','staticdevice');
|
||||
INSERT INTO "django_content_type" VALUES(65,'role_permissions','adminrole');
|
||||
INSERT INTO "django_content_type" VALUES(66,'trusted_ip','trustedip');
|
||||
INSERT INTO "django_content_type" VALUES(67,'sysadmin_extra','userloginlog');
|
||||
INSERT INTO "django_content_type" VALUES(68,'organizations','orgmemberquota');
|
||||
INSERT INTO "django_content_type" VALUES(69,'plan','orgplan');
|
||||
INSERT INTO "django_content_type" VALUES(70,'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,4,'add_group','Can add group');
|
||||
INSERT INTO "auth_permission" VALUES(9,4,'change_group','Can change group');
|
||||
INSERT INTO "auth_permission" VALUES(10,4,'delete_group','Can delete group');
|
||||
INSERT INTO "auth_permission" VALUES(11,6,'add_permission','Can add permission');
|
||||
INSERT INTO "auth_permission" VALUES(12,6,'change_permission','Can change permission');
|
||||
INSERT INTO "auth_permission" VALUES(13,6,'delete_permission','Can delete permission');
|
||||
INSERT INTO "auth_permission" VALUES(14,5,'add_user','Can add user');
|
||||
INSERT INTO "auth_permission" VALUES(15,5,'change_user','Can change user');
|
||||
INSERT INTO "auth_permission" VALUES(16,5,'delete_user','Can delete user');
|
||||
INSERT INTO "auth_permission" VALUES(17,7,'add_registrationprofile','Can add registration profile');
|
||||
INSERT INTO "auth_permission" VALUES(18,7,'change_registrationprofile','Can change registration profile');
|
||||
INSERT INTO "auth_permission" VALUES(19,7,'delete_registrationprofile','Can delete registration profile');
|
||||
INSERT INTO "auth_permission" VALUES(20,8,'add_captchastore','Can add captcha store');
|
||||
INSERT INTO "auth_permission" VALUES(21,8,'change_captchastore','Can change captcha store');
|
||||
INSERT INTO "auth_permission" VALUES(22,8,'delete_captchastore','Can delete captcha store');
|
||||
INSERT INTO "auth_permission" VALUES(23,9,'add_constance','Can add constance');
|
||||
INSERT INTO "auth_permission" VALUES(24,9,'change_constance','Can change constance');
|
||||
INSERT INTO "auth_permission" VALUES(25,9,'delete_constance','Can delete constance');
|
||||
INSERT INTO "auth_permission" VALUES(26,12,'add_email','Can add Email');
|
||||
INSERT INTO "auth_permission" VALUES(27,12,'change_email','Can change Email');
|
||||
INSERT INTO "auth_permission" VALUES(28,12,'delete_email','Can delete Email');
|
||||
INSERT INTO "auth_permission" VALUES(29,13,'add_attachment','Can add Attachment');
|
||||
INSERT INTO "auth_permission" VALUES(30,13,'change_attachment','Can change Attachment');
|
||||
INSERT INTO "auth_permission" VALUES(31,13,'delete_attachment','Can delete Attachment');
|
||||
INSERT INTO "auth_permission" VALUES(32,11,'add_emailtemplate','Can add Email Template');
|
||||
INSERT INTO "auth_permission" VALUES(33,11,'change_emailtemplate','Can change Email Template');
|
||||
INSERT INTO "auth_permission" VALUES(34,11,'delete_emailtemplate','Can delete Email Template');
|
||||
INSERT INTO "auth_permission" VALUES(35,10,'add_log','Can add Log');
|
||||
INSERT INTO "auth_permission" VALUES(36,10,'change_log','Can change Log');
|
||||
INSERT INTO "auth_permission" VALUES(37,10,'delete_log','Can delete Log');
|
||||
INSERT INTO "auth_permission" VALUES(38,14,'add_termsandconditions','Can add Terms and Conditions');
|
||||
INSERT INTO "auth_permission" VALUES(39,14,'change_termsandconditions','Can change Terms and Conditions');
|
||||
INSERT INTO "auth_permission" VALUES(40,14,'delete_termsandconditions','Can delete Terms and Conditions');
|
||||
INSERT INTO "auth_permission" VALUES(41,15,'add_usertermsandconditions','Can add User Terms and Conditions');
|
||||
INSERT INTO "auth_permission" VALUES(42,15,'change_usertermsandconditions','Can change User Terms and Conditions');
|
||||
INSERT INTO "auth_permission" VALUES(43,15,'delete_usertermsandconditions','Can delete User Terms and Conditions');
|
||||
INSERT INTO "auth_permission" VALUES(44,17,'add_tokenv2','Can add token v2');
|
||||
INSERT INTO "auth_permission" VALUES(45,17,'change_tokenv2','Can change token v2');
|
||||
INSERT INTO "auth_permission" VALUES(46,17,'delete_tokenv2','Can delete token v2');
|
||||
INSERT INTO "auth_permission" VALUES(47,16,'add_token','Can add token');
|
||||
INSERT INTO "auth_permission" VALUES(48,16,'change_token','Can change token');
|
||||
INSERT INTO "auth_permission" VALUES(49,16,'delete_token','Can delete token');
|
||||
INSERT INTO "auth_permission" VALUES(50,18,'add_avatar','Can add avatar');
|
||||
INSERT INTO "auth_permission" VALUES(51,18,'change_avatar','Can change avatar');
|
||||
INSERT INTO "auth_permission" VALUES(52,18,'delete_avatar','Can delete avatar');
|
||||
INSERT INTO "auth_permission" VALUES(53,19,'add_groupavatar','Can add group avatar');
|
||||
INSERT INTO "auth_permission" VALUES(54,19,'change_groupavatar','Can change group avatar');
|
||||
INSERT INTO "auth_permission" VALUES(55,19,'delete_groupavatar','Can delete group avatar');
|
||||
INSERT INTO "auth_permission" VALUES(56,23,'add_userenabledmodule','Can add user enabled module');
|
||||
INSERT INTO "auth_permission" VALUES(57,23,'change_userenabledmodule','Can change user enabled module');
|
||||
INSERT INTO "auth_permission" VALUES(58,23,'delete_userenabledmodule','Can delete user enabled module');
|
||||
INSERT INTO "auth_permission" VALUES(59,25,'add_userstarredfiles','Can add user starred files');
|
||||
INSERT INTO "auth_permission" VALUES(60,25,'change_userstarredfiles','Can change user starred files');
|
||||
INSERT INTO "auth_permission" VALUES(61,25,'delete_userstarredfiles','Can delete user starred files');
|
||||
INSERT INTO "auth_permission" VALUES(62,26,'add_filediscuss','Can add file discuss');
|
||||
INSERT INTO "auth_permission" VALUES(63,26,'change_filediscuss','Can change file discuss');
|
||||
INSERT INTO "auth_permission" VALUES(64,26,'delete_filediscuss','Can delete file discuss');
|
||||
INSERT INTO "auth_permission" VALUES(65,29,'add_userlastlogin','Can add user last login');
|
||||
INSERT INTO "auth_permission" VALUES(66,29,'change_userlastlogin','Can change user last login');
|
||||
INSERT INTO "auth_permission" VALUES(67,29,'delete_userlastlogin','Can delete user last login');
|
||||
INSERT INTO "auth_permission" VALUES(68,27,'add_innerpubmsg','Can add inner pub msg');
|
||||
INSERT INTO "auth_permission" VALUES(69,27,'change_innerpubmsg','Can change inner pub msg');
|
||||
INSERT INTO "auth_permission" VALUES(70,27,'delete_innerpubmsg','Can delete inner pub msg');
|
||||
INSERT INTO "auth_permission" VALUES(71,20,'add_groupenabledmodule','Can add group enabled module');
|
||||
INSERT INTO "auth_permission" VALUES(72,20,'change_groupenabledmodule','Can change group enabled module');
|
||||
INSERT INTO "auth_permission" VALUES(73,20,'delete_groupenabledmodule','Can delete group enabled module');
|
||||
INSERT INTO "auth_permission" VALUES(74,22,'add_commandslastcheck','Can add commands last check');
|
||||
INSERT INTO "auth_permission" VALUES(75,22,'change_commandslastcheck','Can change commands last check');
|
||||
INSERT INTO "auth_permission" VALUES(76,22,'delete_commandslastcheck','Can delete commands last check');
|
||||
INSERT INTO "auth_permission" VALUES(77,24,'add_filecomment','Can add file comment');
|
||||
INSERT INTO "auth_permission" VALUES(78,24,'change_filecomment','Can change file comment');
|
||||
INSERT INTO "auth_permission" VALUES(79,24,'delete_filecomment','Can delete file comment');
|
||||
INSERT INTO "auth_permission" VALUES(80,28,'add_innerpubmsgreply','Can add inner pub msg reply');
|
||||
INSERT INTO "auth_permission" VALUES(81,28,'change_innerpubmsgreply','Can change inner pub msg reply');
|
||||
INSERT INTO "auth_permission" VALUES(82,28,'delete_innerpubmsgreply','Can delete inner pub msg reply');
|
||||
INSERT INTO "auth_permission" VALUES(83,21,'add_clientlogintoken','Can add client login token');
|
||||
INSERT INTO "auth_permission" VALUES(84,21,'change_clientlogintoken','Can change client login token');
|
||||
INSERT INTO "auth_permission" VALUES(85,21,'delete_clientlogintoken','Can delete client login token');
|
||||
INSERT INTO "auth_permission" VALUES(86,30,'add_devicetoken','Can add device token');
|
||||
INSERT INTO "auth_permission" VALUES(87,30,'change_devicetoken','Can change device token');
|
||||
INSERT INTO "auth_permission" VALUES(88,30,'delete_devicetoken','Can delete device token');
|
||||
INSERT INTO "auth_permission" VALUES(89,31,'add_contact','Can add contact');
|
||||
INSERT INTO "auth_permission" VALUES(90,31,'change_contact','Can change contact');
|
||||
INSERT INTO "auth_permission" VALUES(91,31,'delete_contact','Can delete contact');
|
||||
INSERT INTO "auth_permission" VALUES(92,33,'add_institution','Can add institution');
|
||||
INSERT INTO "auth_permission" VALUES(93,33,'change_institution','Can change institution');
|
||||
INSERT INTO "auth_permission" VALUES(94,33,'delete_institution','Can delete institution');
|
||||
INSERT INTO "auth_permission" VALUES(95,32,'add_institutionadmin','Can add institution admin');
|
||||
INSERT INTO "auth_permission" VALUES(96,32,'change_institutionadmin','Can change institution admin');
|
||||
INSERT INTO "auth_permission" VALUES(97,32,'delete_institutionadmin','Can delete institution admin');
|
||||
INSERT INTO "auth_permission" VALUES(98,34,'add_institutionquota','Can add institution quota');
|
||||
INSERT INTO "auth_permission" VALUES(99,34,'change_institutionquota','Can change institution quota');
|
||||
INSERT INTO "auth_permission" VALUES(100,34,'delete_institutionquota','Can delete institution quota');
|
||||
INSERT INTO "auth_permission" VALUES(101,35,'add_invitation','Can add invitation');
|
||||
INSERT INTO "auth_permission" VALUES(102,35,'change_invitation','Can change invitation');
|
||||
INSERT INTO "auth_permission" VALUES(103,35,'delete_invitation','Can delete invitation');
|
||||
INSERT INTO "auth_permission" VALUES(104,36,'add_personalwiki','Can add personal wiki');
|
||||
INSERT INTO "auth_permission" VALUES(105,36,'change_personalwiki','Can change personal wiki');
|
||||
INSERT INTO "auth_permission" VALUES(106,36,'delete_personalwiki','Can delete personal wiki');
|
||||
INSERT INTO "auth_permission" VALUES(107,37,'add_wiki','Can add wiki');
|
||||
INSERT INTO "auth_permission" VALUES(108,37,'change_wiki','Can change wiki');
|
||||
INSERT INTO "auth_permission" VALUES(109,37,'delete_wiki','Can delete wiki');
|
||||
INSERT INTO "auth_permission" VALUES(110,38,'add_groupwiki','Can add group wiki');
|
||||
INSERT INTO "auth_permission" VALUES(111,38,'change_groupwiki','Can change group wiki');
|
||||
INSERT INTO "auth_permission" VALUES(112,38,'delete_groupwiki','Can delete group wiki');
|
||||
INSERT INTO "auth_permission" VALUES(113,42,'add_messageattachment','Can add message attachment');
|
||||
INSERT INTO "auth_permission" VALUES(114,42,'change_messageattachment','Can change message attachment');
|
||||
INSERT INTO "auth_permission" VALUES(115,42,'delete_messageattachment','Can delete message attachment');
|
||||
INSERT INTO "auth_permission" VALUES(116,41,'add_messagereply','Can add message reply');
|
||||
INSERT INTO "auth_permission" VALUES(117,41,'change_messagereply','Can change message reply');
|
||||
INSERT INTO "auth_permission" VALUES(118,41,'delete_messagereply','Can delete message reply');
|
||||
INSERT INTO "auth_permission" VALUES(119,39,'add_publicgroup','Can add public group');
|
||||
INSERT INTO "auth_permission" VALUES(120,39,'change_publicgroup','Can change public group');
|
||||
INSERT INTO "auth_permission" VALUES(121,39,'delete_publicgroup','Can delete public group');
|
||||
INSERT INTO "auth_permission" VALUES(122,40,'add_groupmessage','Can add group message');
|
||||
INSERT INTO "auth_permission" VALUES(123,40,'change_groupmessage','Can change group message');
|
||||
INSERT INTO "auth_permission" VALUES(124,40,'delete_groupmessage','Can delete group message');
|
||||
INSERT INTO "auth_permission" VALUES(125,43,'add_notification','Can add notification');
|
||||
INSERT INTO "auth_permission" VALUES(126,43,'change_notification','Can change notification');
|
||||
INSERT INTO "auth_permission" VALUES(127,43,'delete_notification','Can delete notification');
|
||||
INSERT INTO "auth_permission" VALUES(128,44,'add_usernotification','Can add user notification');
|
||||
INSERT INTO "auth_permission" VALUES(129,44,'change_usernotification','Can change user notification');
|
||||
INSERT INTO "auth_permission" VALUES(130,44,'delete_usernotification','Can delete user notification');
|
||||
INSERT INTO "auth_permission" VALUES(131,45,'add_useroptions','Can add user options');
|
||||
INSERT INTO "auth_permission" VALUES(132,45,'change_useroptions','Can change user options');
|
||||
INSERT INTO "auth_permission" VALUES(133,45,'delete_useroptions','Can delete user options');
|
||||
INSERT INTO "auth_permission" VALUES(134,46,'add_detailedprofile','Can add detailed profile');
|
||||
INSERT INTO "auth_permission" VALUES(135,46,'change_detailedprofile','Can change detailed profile');
|
||||
INSERT INTO "auth_permission" VALUES(136,46,'delete_detailedprofile','Can delete detailed profile');
|
||||
INSERT INTO "auth_permission" VALUES(137,47,'add_profile','Can add profile');
|
||||
INSERT INTO "auth_permission" VALUES(138,47,'change_profile','Can change profile');
|
||||
INSERT INTO "auth_permission" VALUES(139,47,'delete_profile','Can delete profile');
|
||||
INSERT INTO "auth_permission" VALUES(140,48,'add_privatefiledirshare','Can add private file dir share');
|
||||
INSERT INTO "auth_permission" VALUES(141,48,'change_privatefiledirshare','Can change private file dir share');
|
||||
INSERT INTO "auth_permission" VALUES(142,48,'delete_privatefiledirshare','Can delete private file dir share');
|
||||
INSERT INTO "auth_permission" VALUES(143,49,'add_fileshare','Can add file share');
|
||||
INSERT INTO "auth_permission" VALUES(144,49,'change_fileshare','Can change file share');
|
||||
INSERT INTO "auth_permission" VALUES(145,49,'delete_fileshare','Can delete file share');
|
||||
INSERT INTO "auth_permission" VALUES(146,52,'add_extrasharepermission','Can add extra share permission');
|
||||
INSERT INTO "auth_permission" VALUES(147,52,'change_extrasharepermission','Can change extra share permission');
|
||||
INSERT INTO "auth_permission" VALUES(148,52,'delete_extrasharepermission','Can delete extra share permission');
|
||||
INSERT INTO "auth_permission" VALUES(149,53,'add_extragroupssharepermission','Can add extra groups share permission');
|
||||
INSERT INTO "auth_permission" VALUES(150,53,'change_extragroupssharepermission','Can change extra groups share permission');
|
||||
INSERT INTO "auth_permission" VALUES(151,53,'delete_extragroupssharepermission','Can delete extra groups share permission');
|
||||
INSERT INTO "auth_permission" VALUES(152,54,'add_anonymousshare','Can add anonymous share');
|
||||
INSERT INTO "auth_permission" VALUES(153,54,'change_anonymousshare','Can change anonymous share');
|
||||
INSERT INTO "auth_permission" VALUES(154,54,'delete_anonymousshare','Can delete anonymous share');
|
||||
INSERT INTO "auth_permission" VALUES(155,50,'add_orgfileshare','Can add org file share');
|
||||
INSERT INTO "auth_permission" VALUES(156,50,'change_orgfileshare','Can change org file share');
|
||||
INSERT INTO "auth_permission" VALUES(157,50,'delete_orgfileshare','Can delete org file share');
|
||||
INSERT INTO "auth_permission" VALUES(158,51,'add_uploadlinkshare','Can add upload link share');
|
||||
INSERT INTO "auth_permission" VALUES(159,51,'change_uploadlinkshare','Can change upload link share');
|
||||
INSERT INTO "auth_permission" VALUES(160,51,'delete_uploadlinkshare','Can delete upload link share');
|
||||
INSERT INTO "auth_permission" VALUES(161,55,'add_adminlog','Can add admin log');
|
||||
INSERT INTO "auth_permission" VALUES(162,55,'change_adminlog','Can change admin log');
|
||||
INSERT INTO "auth_permission" VALUES(163,55,'delete_adminlog','Can delete admin log');
|
||||
INSERT INTO "auth_permission" VALUES(164,57,'add_filetag','Can add file tag');
|
||||
INSERT INTO "auth_permission" VALUES(165,57,'change_filetag','Can change file tag');
|
||||
INSERT INTO "auth_permission" VALUES(166,57,'delete_filetag','Can delete file tag');
|
||||
INSERT INTO "auth_permission" VALUES(167,58,'add_tags','Can add tags');
|
||||
INSERT INTO "auth_permission" VALUES(168,58,'change_tags','Can change tags');
|
||||
INSERT INTO "auth_permission" VALUES(169,58,'delete_tags','Can delete tags');
|
||||
INSERT INTO "auth_permission" VALUES(170,56,'add_fileuuidmap','Can add file uuid map');
|
||||
INSERT INTO "auth_permission" VALUES(171,56,'change_fileuuidmap','Can change file uuid map');
|
||||
INSERT INTO "auth_permission" VALUES(172,56,'delete_fileuuidmap','Can delete file uuid map');
|
||||
INSERT INTO "auth_permission" VALUES(173,60,'add_tags','Can add tags');
|
||||
INSERT INTO "auth_permission" VALUES(174,60,'change_tags','Can change tags');
|
||||
INSERT INTO "auth_permission" VALUES(175,60,'delete_tags','Can delete tags');
|
||||
INSERT INTO "auth_permission" VALUES(176,59,'add_revisiontags','Can add revision tags');
|
||||
INSERT INTO "auth_permission" VALUES(177,59,'change_revisiontags','Can change revision tags');
|
||||
INSERT INTO "auth_permission" VALUES(178,59,'delete_revisiontags','Can delete revision tags');
|
||||
INSERT INTO "auth_permission" VALUES(179,63,'add_totpdevice','Can add TOTP device');
|
||||
INSERT INTO "auth_permission" VALUES(180,63,'change_totpdevice','Can change TOTP device');
|
||||
INSERT INTO "auth_permission" VALUES(181,63,'delete_totpdevice','Can delete TOTP device');
|
||||
INSERT INTO "auth_permission" VALUES(182,62,'add_statictoken','Can add static token');
|
||||
INSERT INTO "auth_permission" VALUES(183,62,'change_statictoken','Can change static token');
|
||||
INSERT INTO "auth_permission" VALUES(184,62,'delete_statictoken','Can delete static token');
|
||||
INSERT INTO "auth_permission" VALUES(185,64,'add_staticdevice','Can add static device');
|
||||
INSERT INTO "auth_permission" VALUES(186,64,'change_staticdevice','Can change static device');
|
||||
INSERT INTO "auth_permission" VALUES(187,64,'delete_staticdevice','Can delete static device');
|
||||
INSERT INTO "auth_permission" VALUES(188,61,'add_phonedevice','Can add phone device');
|
||||
INSERT INTO "auth_permission" VALUES(189,61,'change_phonedevice','Can change phone device');
|
||||
INSERT INTO "auth_permission" VALUES(190,61,'delete_phonedevice','Can delete phone device');
|
||||
INSERT INTO "auth_permission" VALUES(191,65,'add_adminrole','Can add admin role');
|
||||
INSERT INTO "auth_permission" VALUES(192,65,'change_adminrole','Can change admin role');
|
||||
INSERT INTO "auth_permission" VALUES(193,65,'delete_adminrole','Can delete admin role');
|
||||
INSERT INTO "auth_permission" VALUES(194,66,'add_trustedip','Can add trusted ip');
|
||||
INSERT INTO "auth_permission" VALUES(195,66,'change_trustedip','Can change trusted ip');
|
||||
INSERT INTO "auth_permission" VALUES(196,66,'delete_trustedip','Can delete trusted ip');
|
||||
INSERT INTO "auth_permission" VALUES(197,67,'add_userloginlog','Can add user login log');
|
||||
INSERT INTO "auth_permission" VALUES(198,67,'change_userloginlog','Can change user login log');
|
||||
INSERT INTO "auth_permission" VALUES(199,67,'delete_userloginlog','Can delete user login log');
|
||||
INSERT INTO "auth_permission" VALUES(200,68,'add_orgmemberquota','Can add org member quota');
|
||||
INSERT INTO "auth_permission" VALUES(201,68,'change_orgmemberquota','Can change org member quota');
|
||||
INSERT INTO "auth_permission" VALUES(202,68,'delete_orgmemberquota','Can delete org member quota');
|
||||
INSERT INTO "auth_permission" VALUES(203,70,'add_userplan','Can add user plan');
|
||||
INSERT INTO "auth_permission" VALUES(204,70,'change_userplan','Can change user plan');
|
||||
INSERT INTO "auth_permission" VALUES(205,70,'delete_userplan','Can delete user plan');
|
||||
INSERT INTO "auth_permission" VALUES(206,69,'add_orgplan','Can add org plan');
|
||||
INSERT INTO "auth_permission" VALUES(207,69,'change_orgplan','Can change org plan');
|
||||
INSERT INTO "auth_permission" VALUES(208,69,'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 "base_filediscuss" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "group_message_id" integer NOT NULL REFERENCES "group_groupmessage" ("id"), "repo_id" varchar(36) NOT NULL, "path" text NOT NULL, "path_hash" varchar(12) NOT NULL);
|
||||
CREATE TABLE "base_filecomment" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "repo_id" varchar(36) NOT NULL, "parent_path" text NOT NULL, "repo_id_parent_path_md5" varchar(100) NOT NULL, "item_name" text NOT NULL, "author" varchar(255) NOT NULL, "comment" text NOT NULL, "created_at" datetime NOT NULL, "updated_at" 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_userenabledmodule" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "username" varchar(255) NOT NULL, "module_name" varchar(20) NOT NULL);
|
||||
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_userlastlogin" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "username" varchar(255) NOT NULL, "last_login" 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_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, "reply_to_id" integer NOT NULL REFERENCES "base_innerpubmsg" ("id"), "from_email" varchar(254) NOT NULL, "message" varchar(150) NOT NULL, "timestamp" 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, UNIQUE ("token", "user"));
|
||||
CREATE TABLE "base_clientlogintoken" ("token" varchar(32) NOT NULL PRIMARY KEY, "username" varchar(255) NOT NULL, "timestamp" 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 "wiki_personalwiki" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "username" varchar(255) NOT NULL UNIQUE, "repo_id" varchar(36) 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 "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_messagereply" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "reply_to_id" integer NOT NULL REFERENCES "group_groupmessage" ("id"), "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, "group_message_id" integer NOT NULL REFERENCES "group_groupmessage" ("id"), "repo_id" varchar(40) NOT NULL, "attach_type" varchar(5) NOT NULL, "path" text NOT NULL, "src" varchar(20) 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 "notifications_notification" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "message" varchar(512) NOT NULL, "primary" bool 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_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"));
|
||||
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 "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 "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_usernotification" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "to_user" varchar(255) NOT NULL, "msg_type" varchar(30) NOT NULL, "detail" text NOT NULL, "timestamp" datetime NOT NULL, "seen" bool NOT NULL);
|
||||
CREATE TABLE "notifications_notification" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "message" varchar(512) NOT NULL, "primary" bool NOT NULL);
|
||||
CREATE TABLE "options_useroptions" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "email" varchar(255) NOT NULL, "option_key" varchar(50) NOT NULL, "option_val" varchar(50) 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, "contact_email" varchar(225) NULL, "institution" varchar(225) NULL, "list_in_address_book" bool NOT NULL);
|
||||
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, "contact_email" varchar(225) NULL, "institution" varchar(225) NULL, "list_in_address_book" bool NOT NULL);
|
||||
CREATE TABLE "registration_registrationprofile" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "emailuser_id" integer NOT NULL, "activation_key" varchar(40) NOT NULL);
|
||||
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_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 "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 "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, "uuid_id" char(32) NOT NULL REFERENCES "tags_fileuuidmap" ("uuid"), "tag_id" integer NOT NULL REFERENCES "tags_tags" ("id"), "username" varchar(255) NOT NULL);
|
||||
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, "tag_id" integer NOT NULL REFERENCES "revision_tag_tags" ("id"), "username" varchar(255) NOT NULL);
|
||||
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 "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 "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, "device_id" integer NOT NULL REFERENCES "two_factor_staticdevice" ("id"), "token" varchar(16) NOT NULL);
|
||||
CREATE TABLE "trusted_ip_trustedip" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "ip" varchar(255) 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 "organizations_orgmemberquota" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "org_id" integer NOT NULL, "quota" integer NOT NULL);
|
||||
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 "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 "django_content_type" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "app_label" varchar(100) NOT NULL, "model" varchar(100) NOT NULL, UNIQUE ("app_label", "model"));
|
||||
INSERT INTO "django_content_type" VALUES(1,'contenttypes','contenttype');
|
||||
INSERT INTO "django_content_type" VALUES(2,'sessions','session');
|
||||
INSERT INTO "django_content_type" VALUES(3,'registration','registrationprofile');
|
||||
INSERT INTO "django_content_type" VALUES(4,'captcha','captchastore');
|
||||
INSERT INTO "django_content_type" VALUES(5,'database','constance');
|
||||
INSERT INTO "django_content_type" VALUES(6,'post_office','attachment');
|
||||
INSERT INTO "django_content_type" VALUES(7,'post_office','emailtemplate');
|
||||
INSERT INTO "django_content_type" VALUES(8,'post_office','email');
|
||||
INSERT INTO "django_content_type" VALUES(9,'post_office','log');
|
||||
INSERT INTO "django_content_type" VALUES(10,'termsandconditions','termsandconditions');
|
||||
INSERT INTO "django_content_type" VALUES(11,'termsandconditions','usertermsandconditions');
|
||||
INSERT INTO "django_content_type" VALUES(12,'api2','token');
|
||||
INSERT INTO "django_content_type" VALUES(13,'api2','tokenv2');
|
||||
INSERT INTO "django_content_type" VALUES(14,'avatar','avatar');
|
||||
INSERT INTO "django_content_type" VALUES(15,'avatar','groupavatar');
|
||||
INSERT INTO "django_content_type" VALUES(16,'base','groupenabledmodule');
|
||||
INSERT INTO "django_content_type" VALUES(17,'base','clientlogintoken');
|
||||
INSERT INTO "django_content_type" VALUES(18,'base','userenabledmodule');
|
||||
INSERT INTO "django_content_type" VALUES(19,'base','filecomment');
|
||||
INSERT INTO "django_content_type" VALUES(20,'base','filediscuss');
|
||||
INSERT INTO "django_content_type" VALUES(21,'base','devicetoken');
|
||||
INSERT INTO "django_content_type" VALUES(22,'base','commandslastcheck');
|
||||
INSERT INTO "django_content_type" VALUES(23,'base','innerpubmsg');
|
||||
INSERT INTO "django_content_type" VALUES(24,'base','innerpubmsgreply');
|
||||
INSERT INTO "django_content_type" VALUES(25,'base','userlastlogin');
|
||||
INSERT INTO "django_content_type" VALUES(26,'base','userstarredfiles');
|
||||
INSERT INTO "django_content_type" VALUES(27,'contacts','contact');
|
||||
INSERT INTO "django_content_type" VALUES(28,'institutions','institutionadmin');
|
||||
INSERT INTO "django_content_type" VALUES(29,'institutions','institution');
|
||||
INSERT INTO "django_content_type" VALUES(30,'institutions','institutionquota');
|
||||
INSERT INTO "django_content_type" VALUES(31,'invitations','invitation');
|
||||
INSERT INTO "django_content_type" VALUES(32,'wiki','personalwiki');
|
||||
INSERT INTO "django_content_type" VALUES(33,'wiki','groupwiki');
|
||||
INSERT INTO "django_content_type" VALUES(34,'group','publicgroup');
|
||||
INSERT INTO "django_content_type" VALUES(35,'group','groupmessage');
|
||||
INSERT INTO "django_content_type" VALUES(36,'group','messageattachment');
|
||||
INSERT INTO "django_content_type" VALUES(37,'group','messagereply');
|
||||
INSERT INTO "django_content_type" VALUES(38,'notifications','notification');
|
||||
INSERT INTO "django_content_type" VALUES(39,'notifications','usernotification');
|
||||
INSERT INTO "django_content_type" VALUES(40,'options','useroptions');
|
||||
INSERT INTO "django_content_type" VALUES(41,'profile','profile');
|
||||
INSERT INTO "django_content_type" VALUES(42,'profile','detailedprofile');
|
||||
INSERT INTO "django_content_type" VALUES(43,'share','privatefiledirshare');
|
||||
INSERT INTO "django_content_type" VALUES(44,'share','fileshare');
|
||||
INSERT INTO "django_content_type" VALUES(45,'share','orgfileshare');
|
||||
INSERT INTO "django_content_type" VALUES(46,'share','uploadlinkshare');
|
||||
INSERT INTO "django_content_type" VALUES(47,'share','extrasharepermission');
|
||||
INSERT INTO "django_content_type" VALUES(48,'share','extragroupssharepermission');
|
||||
INSERT INTO "django_content_type" VALUES(49,'share','anonymousshare');
|
||||
INSERT INTO "django_content_type" VALUES(50,'admin_log','adminlog');
|
||||
INSERT INTO "django_content_type" VALUES(51,'tags','fileuuidmap');
|
||||
INSERT INTO "django_content_type" VALUES(52,'tags','filetag');
|
||||
INSERT INTO "django_content_type" VALUES(53,'tags','tags');
|
||||
INSERT INTO "django_content_type" VALUES(54,'revision_tag','revisiontags');
|
||||
INSERT INTO "django_content_type" VALUES(55,'revision_tag','tags');
|
||||
INSERT INTO "django_content_type" VALUES(56,'two_factor','phonedevice');
|
||||
INSERT INTO "django_content_type" VALUES(57,'two_factor','statictoken');
|
||||
INSERT INTO "django_content_type" VALUES(58,'two_factor','totpdevice');
|
||||
INSERT INTO "django_content_type" VALUES(59,'two_factor','staticdevice');
|
||||
INSERT INTO "django_content_type" VALUES(60,'role_permissions','adminrole');
|
||||
INSERT INTO "django_content_type" VALUES(61,'trusted_ip','trustedip');
|
||||
INSERT INTO "django_content_type" VALUES(62,'sysadmin_extra','userloginlog');
|
||||
INSERT INTO "django_content_type" VALUES(63,'organizations','orgmemberquota');
|
||||
CREATE TABLE "constance_config" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "key" varchar(255) NOT NULL UNIQUE, "value" text NOT NULL);
|
||||
CREATE TABLE "institutions_institution" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" varchar(200) NOT NULL, "create_time" datetime NOT NULL);
|
||||
CREATE TABLE "institutions_institutionadmin" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "user" varchar(254) NOT NULL, "institution_id" integer NOT NULL REFERENCES "institutions_institution" ("id"));
|
||||
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 "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 "post_office_attachment" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "file" varchar(100) NOT NULL, "name" varchar(255) NOT NULL);
|
||||
CREATE TABLE "post_office_log" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "date" datetime NOT NULL, "status" smallint unsigned NOT NULL, "exception_type" varchar(255) NOT NULL, "message" text NOT NULL, "email_id" integer NOT NULL REFERENCES "post_office_email" ("id"));
|
||||
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"), UNIQUE ("attachment_id", "email_id"));
|
||||
CREATE TABLE "post_office_email" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "from_email" varchar(254) NOT NULL, "cc" text NOT NULL, "bcc" text NOT NULL, "subject" varchar(255) 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, "template_id" integer NULL REFERENCES "post_office_emailtemplate" ("id"), "backend_alias" varchar(64) NOT NULL, "to" text NOT NULL);
|
||||
CREATE TABLE "post_office_emailtemplate" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" varchar(255) NOT NULL, "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, "default_template_id" integer NULL REFERENCES "post_office_emailtemplate" ("id"), "language" varchar(12) NOT NULL, UNIQUE ("language", "default_template_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 "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"), UNIQUE ("username", "terms_id"));
|
||||
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, "repo_id" varchar(36) NOT NULL, "permission" varchar(50) NOT NULL, "created_at" datetime NOT NULL);
|
||||
DELETE FROM sqlite_sequence;
|
||||
INSERT INTO "sqlite_sequence" VALUES('django_migrations',18);
|
||||
INSERT INTO "sqlite_sequence" VALUES('django_content_type',63);
|
||||
INSERT INTO "sqlite_sequence" VALUES('django_migrations',48);
|
||||
INSERT INTO "sqlite_sequence" VALUES('django_content_type',70);
|
||||
INSERT INTO "sqlite_sequence" VALUES('auth_permission',208);
|
||||
INSERT INTO "sqlite_sequence" VALUES('auth_user',0);
|
||||
INSERT INTO "sqlite_sequence" VALUES('tags_filetag',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('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('termsandconditions_usertermsandconditions',0);
|
||||
CREATE INDEX "base_filediscuss_06a351d8" ON "base_filediscuss" ("group_message_id");
|
||||
CREATE INDEX "base_filediscuss_b57d9b6b" ON "base_filediscuss" ("path_hash");
|
||||
CREATE INDEX "base_filecomment_9a8c79bf" ON "base_filecomment" ("repo_id");
|
||||
CREATE INDEX "base_filecomment_c5bf47d4" ON "base_filecomment" ("repo_id_parent_path_md5");
|
||||
CREATE INDEX "base_filecomment_02bd92fa" ON "base_filecomment" ("author");
|
||||
CREATE INDEX "base_userstarredfiles_0c83f57c" ON "base_userstarredfiles" ("email");
|
||||
CREATE INDEX "base_userstarredfiles_9a8c79bf" ON "base_userstarredfiles" ("repo_id");
|
||||
CREATE INDEX "base_userenabledmodule_14c4b06b" ON "base_userenabledmodule" ("username");
|
||||
CREATE INDEX "base_groupenabledmodule_0e939a4f" ON "base_groupenabledmodule" ("group_id");
|
||||
CREATE INDEX "base_userlastlogin_14c4b06b" ON "base_userlastlogin" ("username");
|
||||
CREATE INDEX "base_innerpubmsgreply_6ec85d95" ON "base_innerpubmsgreply" ("reply_to_id");
|
||||
CREATE INDEX "base_clientlogintoken_14c4b06b" ON "base_clientlogintoken" ("username");
|
||||
CREATE INDEX "contacts_contact_40c27bdc" ON "contacts_contact" ("user_email");
|
||||
CREATE INDEX "group_groupmessage_0e939a4f" ON "group_groupmessage" ("group_id");
|
||||
CREATE INDEX "group_messagereply_6ec85d95" ON "group_messagereply" ("reply_to_id");
|
||||
CREATE INDEX "group_messageattachment_06a351d8" ON "group_messageattachment" ("group_message_id");
|
||||
CREATE INDEX "group_publicgroup_0e939a4f" ON "group_publicgroup" ("group_id");
|
||||
CREATE INDEX "notifications_usernotification_86899d6f" ON "notifications_usernotification" ("to_user");
|
||||
CREATE INDEX "notifications_usernotification_486af403" ON "notifications_usernotification" ("msg_type");
|
||||
CREATE INDEX "options_useroptions_0c83f57c" ON "options_useroptions" ("email");
|
||||
CREATE INDEX "profile_profile_b9973d8c" ON "profile_profile" ("contact_email");
|
||||
CREATE INDEX "profile_profile_955bfff7" ON "profile_profile" ("institution");
|
||||
CREATE INDEX "profile_profile_3d5d3631" ON "profile_profile" ("list_in_address_book");
|
||||
CREATE INDEX "profile_detailedprofile_ee11cbb1" ON "profile_detailedprofile" ("user");
|
||||
CREATE INDEX "share_extragroupssharepermission_9a8c79bf" ON "share_extragroupssharepermission" ("repo_id");
|
||||
CREATE INDEX "share_extragroupssharepermission_0e939a4f" ON "share_extragroupssharepermission" ("group_id");
|
||||
CREATE INDEX "share_extrasharepermission_9a8c79bf" ON "share_extrasharepermission" ("repo_id");
|
||||
CREATE INDEX "share_extrasharepermission_e4fb1dad" ON "share_extrasharepermission" ("share_to");
|
||||
CREATE INDEX "share_fileshare_14c4b06b" ON "share_fileshare" ("username");
|
||||
CREATE INDEX "share_fileshare_9a8c79bf" ON "share_fileshare" ("repo_id");
|
||||
CREATE INDEX "share_fileshare_1abd88b5" ON "share_fileshare" ("s_type");
|
||||
CREATE INDEX "share_fileshare_4b65ca0f" ON "share_fileshare" ("permission");
|
||||
CREATE INDEX "share_orgfileshare_9cf869aa" ON "share_orgfileshare" ("org_id");
|
||||
CREATE INDEX "share_uploadlinkshare_14c4b06b" ON "share_uploadlinkshare" ("username");
|
||||
CREATE INDEX "share_uploadlinkshare_9a8c79bf" ON "share_uploadlinkshare" ("repo_id");
|
||||
CREATE INDEX "share_privatefiledirshare_f4f87abd" ON "share_privatefiledirshare" ("from_user");
|
||||
CREATE INDEX "share_privatefiledirshare_86899d6f" ON "share_privatefiledirshare" ("to_user");
|
||||
CREATE INDEX "share_privatefiledirshare_9a8c79bf" ON "share_privatefiledirshare" ("repo_id");
|
||||
CREATE INDEX "tags_fileuuidmap_9a8c79bf" ON "tags_fileuuidmap" ("repo_id");
|
||||
CREATE INDEX "tags_fileuuidmap_c5bf47d4" ON "tags_fileuuidmap" ("repo_id_parent_path_md5");
|
||||
CREATE INDEX "tags_filetag_10634818" ON "tags_filetag" ("uuid_id");
|
||||
CREATE INDEX "tags_filetag_76f094bc" ON "tags_filetag" ("tag_id");
|
||||
CREATE INDEX "revision_tag_revisiontags_9a8c79bf" ON "revision_tag_revisiontags" ("repo_id");
|
||||
CREATE INDEX "revision_tag_revisiontags_5de09a8d" ON "revision_tag_revisiontags" ("revision_id");
|
||||
CREATE INDEX "revision_tag_revisiontags_76f094bc" ON "revision_tag_revisiontags" ("tag_id");
|
||||
CREATE INDEX "revision_tag_revisiontags_14c4b06b" ON "revision_tag_revisiontags" ("username");
|
||||
CREATE INDEX "two_factor_statictoken_9379346c" ON "two_factor_statictoken" ("device_id");
|
||||
CREATE INDEX "two_factor_statictoken_94a08da1" ON "two_factor_statictoken" ("token");
|
||||
CREATE INDEX "trusted_ip_trustedip_957b527b" ON "trusted_ip_trustedip" ("ip");
|
||||
CREATE INDEX "sysadmin_extra_userloginlog_14c4b06b" ON "sysadmin_extra_userloginlog" ("username");
|
||||
CREATE INDEX "sysadmin_extra_userloginlog_28ed1ef0" ON "sysadmin_extra_userloginlog" ("login_date");
|
||||
CREATE INDEX "organizations_orgmemberquota_9cf869aa" ON "organizations_orgmemberquota" ("org_id");
|
||||
CREATE INDEX "admin_log_adminlog_0c83f57c" ON "admin_log_adminlog" ("email");
|
||||
CREATE INDEX "admin_log_adminlog_f7235a61" ON "admin_log_adminlog" ("operation");
|
||||
CREATE INDEX "institutions_institutionadmin_a964baeb" ON "institutions_institutionadmin" ("institution_id");
|
||||
CREATE INDEX "institutions_institutionquota_a964baeb" ON "institutions_institutionquota" ("institution_id");
|
||||
CREATE INDEX "invitations_invitation_94a08da1" ON "invitations_invitation" ("token");
|
||||
CREATE INDEX "invitations_invitation_d5dd16f8" ON "invitations_invitation" ("inviter");
|
||||
CREATE INDEX "post_office_log_fdfd0ebf" ON "post_office_log" ("email_id");
|
||||
CREATE INDEX "post_office_attachment_emails_07ba63f5" ON "post_office_attachment_emails" ("attachment_id");
|
||||
CREATE INDEX "post_office_attachment_emails_fdfd0ebf" ON "post_office_attachment_emails" ("email_id");
|
||||
CREATE INDEX "post_office_email_9acb4454" ON "post_office_email" ("status");
|
||||
CREATE INDEX "post_office_email_e2fa5388" ON "post_office_email" ("created");
|
||||
CREATE INDEX "post_office_email_3acc0b7a" ON "post_office_email" ("last_updated");
|
||||
CREATE INDEX "post_office_email_ed24d584" ON "post_office_email" ("scheduled_time");
|
||||
CREATE INDEX "post_office_email_74f53564" ON "post_office_email" ("template_id");
|
||||
CREATE INDEX "post_office_emailtemplate_dea6f63e" ON "post_office_emailtemplate" ("default_template_id");
|
||||
CREATE INDEX "django_session_de54fa62" ON "django_session" ("expire_date");
|
||||
CREATE INDEX "termsandconditions_termsandconditions_2dbcba41" ON "termsandconditions_termsandconditions" ("slug");
|
||||
CREATE INDEX "termsandconditions_usertermsandconditions_2ab34720" ON "termsandconditions_usertermsandconditions" ("terms_id");
|
||||
INSERT INTO "sqlite_sequence" VALUES('post_office_log',0);
|
||||
INSERT INTO "sqlite_sequence" VALUES('post_office_attachment',0);
|
||||
INSERT INTO "sqlite_sequence" VALUES('revision_tag_revisiontags',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_filecomment_author_8a4d7e91" ON "base_filecomment" ("author");
|
||||
CREATE INDEX "base_filecomment_uuid_id_4f9a2ca2" ON "base_filecomment" ("uuid_id");
|
||||
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 "contacts_contact_user_email_149035d4" ON "contacts_contact" ("user_email");
|
||||
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_usernotification_to_user_6cadafa1" ON "notifications_usernotification" ("to_user");
|
||||
CREATE INDEX "notifications_usernotification_msg_type_985afd02" ON "notifications_usernotification" ("msg_type");
|
||||
CREATE INDEX "notifications_notification_primary_4f95ec21" ON "notifications_notification" ("primary");
|
||||
CREATE INDEX "options_useroptions_email_77d5726a" ON "options_useroptions" ("email");
|
||||
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_contact_email_0975e4bf" ON "profile_profile" ("contact_email");
|
||||
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 "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 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");
|
||||
COMMIT;
|
||||
|
28
thirdpart/registration/migrations/0001_initial.py
Normal file
28
thirdpart/registration/migrations/0001_initial.py
Normal file
@ -0,0 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.11 on 2018-04-26 07:43
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='RegistrationProfile',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('emailuser_id', models.IntegerField()),
|
||||
('activation_key', models.CharField(max_length=40, verbose_name='activation key')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'registration profile',
|
||||
'verbose_name_plural': 'registration profiles',
|
||||
},
|
||||
),
|
||||
]
|
0
thirdpart/registration/migrations/__init__.py
Normal file
0
thirdpart/registration/migrations/__init__.py
Normal file
Loading…
Reference in New Issue
Block a user