1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 13:24:52 +00:00

[sql] Add missing tables

This commit is contained in:
zhengxie
2016-08-02 14:49:25 +08:00
parent f4152fbec6
commit a0c3b15c75
2 changed files with 107 additions and 64 deletions

View File

@@ -285,11 +285,11 @@ CREATE TABLE `django_content_type` (
`model` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `django_content_type_app_label_45f3b1d93ec8c61c_uniq` (`app_label`,`model`)
) ENGINE=InnoDB AUTO_INCREMENT=54 DEFAULT CHARSET=utf8;
) ENGINE=InnoDB AUTO_INCREMENT=56 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40000 ALTER TABLE `django_content_type` DISABLE KEYS */;
INSERT INTO `django_content_type` VALUES (10,'api2','token'),(11,'api2','tokenv2'),(12,'avatar','avatar'),(13,'avatar','groupavatar'),(15,'base','clientlogintoken'),(20,'base','commandslastcheck'),(19,'base','devicetoken'),(17,'base','filecomment'),(18,'base','filediscuss'),(14,'base','groupenabledmodule'),(21,'base','innerpubmsg'),(22,'base','innerpubmsgreply'),(16,'base','userenabledmodule'),(23,'base','userlastlogin'),(24,'base','userstarredfiles'),(4,'captcha','captchastore'),(25,'contacts','contact'),(1,'contenttypes','contenttype'),(5,'database','constance'),(32,'group','groupmessage'),(33,'group','messageattachment'),(34,'group','messagereply'),(31,'group','publicgroup'),(27,'institutions','institution'),(26,'institutions','institutionadmin'),(28,'invitations','invitation'),(37,'message','usermessage'),(35,'message','usermsgattachment'),(36,'message','usermsglastcheck'),(38,'notifications','notification'),(39,'notifications','usernotification'),(40,'options','useroptions'),(49,'organizations','orgmemberquota'),(6,'post_office','attachment'),(8,'post_office','email'),(7,'post_office','emailtemplate'),(9,'post_office','log'),(42,'profile','detailedprofile'),(41,'profile','profile'),(3,'registration','registrationprofile'),(2,'sessions','session'),(46,'share','anonymousshare'),(45,'share','fileshare'),(47,'share','orgfileshare'),(43,'share','privatefiledirshare'),(44,'share','uploadlinkshare'),(48,'sysadmin_extra','userloginlog'),(50,'two_factor','phonedevice'),(53,'two_factor','staticdevice'),(51,'two_factor','statictoken'),(52,'two_factor','totpdevice'),(30,'wiki','groupwiki'),(29,'wiki','personalwiki');
INSERT INTO `django_content_type` VALUES (12,'api2','token'),(13,'api2','tokenv2'),(14,'avatar','avatar'),(15,'avatar','groupavatar'),(17,'base','clientlogintoken'),(22,'base','commandslastcheck'),(21,'base','devicetoken'),(19,'base','filecomment'),(20,'base','filediscuss'),(16,'base','groupenabledmodule'),(23,'base','innerpubmsg'),(24,'base','innerpubmsgreply'),(18,'base','userenabledmodule'),(25,'base','userlastlogin'),(26,'base','userstarredfiles'),(4,'captcha','captchastore'),(27,'contacts','contact'),(1,'contenttypes','contenttype'),(5,'database','constance'),(34,'group','groupmessage'),(35,'group','messageattachment'),(36,'group','messagereply'),(33,'group','publicgroup'),(29,'institutions','institution'),(28,'institutions','institutionadmin'),(30,'invitations','invitation'),(39,'message','usermessage'),(37,'message','usermsgattachment'),(38,'message','usermsglastcheck'),(40,'notifications','notification'),(41,'notifications','usernotification'),(42,'options','useroptions'),(51,'organizations','orgmemberquota'),(6,'post_office','attachment'),(8,'post_office','email'),(7,'post_office','emailtemplate'),(9,'post_office','log'),(44,'profile','detailedprofile'),(43,'profile','profile'),(3,'registration','registrationprofile'),(2,'sessions','session'),(48,'share','anonymousshare'),(47,'share','fileshare'),(49,'share','orgfileshare'),(45,'share','privatefiledirshare'),(46,'share','uploadlinkshare'),(50,'sysadmin_extra','userloginlog'),(10,'termsandconditions','termsandconditions'),(11,'termsandconditions','usertermsandconditions'),(52,'two_factor','phonedevice'),(55,'two_factor','staticdevice'),(53,'two_factor','statictoken'),(54,'two_factor','totpdevice'),(32,'wiki','groupwiki'),(31,'wiki','personalwiki');
/*!40000 ALTER TABLE `django_content_type` ENABLE KEYS */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
@@ -299,11 +299,11 @@ CREATE TABLE `django_migrations` (
`name` varchar(255) NOT NULL,
`applied` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40000 ALTER TABLE `django_migrations` DISABLE KEYS */;
INSERT INTO `django_migrations` VALUES (1,'captcha','0001_initial','2016-08-02 11:51:04.446846'),(2,'contenttypes','0001_initial','2016-08-02 11:51:04.495772'),(3,'contenttypes','0002_remove_content_type_name','2016-08-02 11:51:04.567653'),(4,'database','0001_initial','2016-08-02 11:51:04.594148'),(5,'institutions','0001_initial','2016-08-02 11:51:04.668845'),(6,'invitations','0001_initial','2016-08-02 11:51:04.706963'),(7,'invitations','0002_invitation_invite_type','2016-08-02 11:51:04.744318'),(8,'invitations','0003_auto_20160510_1703','2016-08-02 11:51:04.798795'),(9,'invitations','0004_auto_20160629_1610','2016-08-02 11:51:04.873490'),(10,'invitations','0005_auto_20160629_1614','2016-08-02 11:51:04.893303'),(11,'post_office','0001_initial','2016-08-02 11:51:05.226968'),(12,'post_office','0002_add_i18n_and_backend_alias','2016-08-02 11:51:05.776662'),(13,'sessions','0001_initial','2016-08-02 11:51:05.963249'),(14,'two_factor','0001_initial','2016-08-02 11:51:06.099467');
INSERT INTO `django_migrations` VALUES (1,'captcha','0001_initial','2016-08-02 14:48:00.596152'),(2,'contenttypes','0001_initial','2016-08-02 14:48:00.797303'),(3,'contenttypes','0002_remove_content_type_name','2016-08-02 14:48:00.879450'),(4,'database','0001_initial','2016-08-02 14:48:00.902084'),(5,'institutions','0001_initial','2016-08-02 14:48:01.021340'),(6,'invitations','0001_initial','2016-08-02 14:48:01.068479'),(7,'invitations','0002_invitation_invite_type','2016-08-02 14:48:01.105755'),(8,'invitations','0003_auto_20160510_1703','2016-08-02 14:48:01.163442'),(9,'invitations','0004_auto_20160629_1610','2016-08-02 14:48:01.265499'),(10,'invitations','0005_auto_20160629_1614','2016-08-02 14:48:01.290426'),(11,'post_office','0001_initial','2016-08-02 14:48:01.727406'),(12,'post_office','0002_add_i18n_and_backend_alias','2016-08-02 14:48:02.927550'),(13,'sessions','0001_initial','2016-08-02 14:48:02.976884'),(14,'termsandconditions','0001_initial','2016-08-02 14:48:03.107817'),(15,'two_factor','0001_initial','2016-08-02 14:48:03.249115');
/*!40000 ALTER TABLE `django_migrations` ENABLE KEYS */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
@@ -783,6 +783,41 @@ CREATE TABLE `sysadmin_extra_userloginlog` (
/*!40000 ALTER TABLE `sysadmin_extra_userloginlog` ENABLE KEYS */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `termsandconditions_termsandconditions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`slug` varchar(50) NOT NULL,
`name` longtext NOT NULL,
`version_number` decimal(6,2) NOT NULL,
`text` longtext,
`info` longtext,
`date_active` datetime DEFAULT NULL,
`date_created` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `termsandconditions_termsandconditions_2dbcba41` (`slug`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40000 ALTER TABLE `termsandconditions_termsandconditions` DISABLE KEYS */;
/*!40000 ALTER TABLE `termsandconditions_termsandconditions` ENABLE KEYS */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `termsandconditions_usertermsandconditions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) NOT NULL,
`ip_address` char(39) DEFAULT NULL,
`date_accepted` datetime NOT NULL,
`terms_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `termsandconditions_usertermsandcon_username_f4ab54cafa29322_uniq` (`username`,`terms_id`),
KEY `e4da106203f3f13ff96409b55de6f515` (`terms_id`),
CONSTRAINT `e4da106203f3f13ff96409b55de6f515` FOREIGN KEY (`terms_id`) REFERENCES `termsandconditions_termsandconditions` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40000 ALTER TABLE `termsandconditions_usertermsandconditions` DISABLE KEYS */;
/*!40000 ALTER TABLE `termsandconditions_usertermsandconditions` ENABLE KEYS */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `two_factor_phonedevice` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` varchar(255) NOT NULL,

View File

@@ -1,20 +1,21 @@
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,'captcha','0001_initial','2016-08-02 11:55:46.042016');
INSERT INTO "django_migrations" VALUES(2,'contenttypes','0001_initial','2016-08-02 11:55:46.073441');
INSERT INTO "django_migrations" VALUES(3,'contenttypes','0002_remove_content_type_name','2016-08-02 11:55:46.115708');
INSERT INTO "django_migrations" VALUES(4,'database','0001_initial','2016-08-02 11:55:46.129599');
INSERT INTO "django_migrations" VALUES(5,'institutions','0001_initial','2016-08-02 11:55:46.159066');
INSERT INTO "django_migrations" VALUES(6,'invitations','0001_initial','2016-08-02 11:55:46.173229');
INSERT INTO "django_migrations" VALUES(7,'invitations','0002_invitation_invite_type','2016-08-02 11:55:46.190400');
INSERT INTO "django_migrations" VALUES(8,'invitations','0003_auto_20160510_1703','2016-08-02 11:55:46.225410');
INSERT INTO "django_migrations" VALUES(9,'invitations','0004_auto_20160629_1610','2016-08-02 11:55:46.256625');
INSERT INTO "django_migrations" VALUES(10,'invitations','0005_auto_20160629_1614','2016-08-02 11:55:46.278074');
INSERT INTO "django_migrations" VALUES(11,'post_office','0001_initial','2016-08-02 11:55:46.384067');
INSERT INTO "django_migrations" VALUES(12,'post_office','0002_add_i18n_and_backend_alias','2016-08-02 11:55:46.858146');
INSERT INTO "django_migrations" VALUES(13,'sessions','0001_initial','2016-08-02 11:55:46.873059');
INSERT INTO "django_migrations" VALUES(14,'two_factor','0001_initial','2016-08-02 11:55:46.933775');
INSERT INTO "django_migrations" VALUES(1,'captcha','0001_initial','2016-08-02 14:46:37.874354');
INSERT INTO "django_migrations" VALUES(2,'contenttypes','0001_initial','2016-08-02 14:46:37.899146');
INSERT INTO "django_migrations" VALUES(3,'contenttypes','0002_remove_content_type_name','2016-08-02 14:46:37.943407');
INSERT INTO "django_migrations" VALUES(4,'database','0001_initial','2016-08-02 14:46:37.955558');
INSERT INTO "django_migrations" VALUES(5,'institutions','0001_initial','2016-08-02 14:46:37.984276');
INSERT INTO "django_migrations" VALUES(6,'invitations','0001_initial','2016-08-02 14:46:38.001119');
INSERT INTO "django_migrations" VALUES(7,'invitations','0002_invitation_invite_type','2016-08-02 14:46:38.016749');
INSERT INTO "django_migrations" VALUES(8,'invitations','0003_auto_20160510_1703','2016-08-02 14:46:38.048838');
INSERT INTO "django_migrations" VALUES(9,'invitations','0004_auto_20160629_1610','2016-08-02 14:46:38.080737');
INSERT INTO "django_migrations" VALUES(10,'invitations','0005_auto_20160629_1614','2016-08-02 14:46:38.101288');
INSERT INTO "django_migrations" VALUES(11,'post_office','0001_initial','2016-08-02 14:46:38.208733');
INSERT INTO "django_migrations" VALUES(12,'post_office','0002_add_i18n_and_backend_alias','2016-08-02 14:46:38.680198');
INSERT INTO "django_migrations" VALUES(13,'sessions','0001_initial','2016-08-02 14:46:38.695732');
INSERT INTO "django_migrations" VALUES(14,'termsandconditions','0001_initial','2016-08-02 14:46:38.750499');
INSERT INTO "django_migrations" VALUES(15,'two_factor','0001_initial','2016-08-02 14:46:38.813771');
CREATE TABLE "registration_registrationprofile" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "emailuser_id" integer NOT NULL, "activation_key" varchar(40) 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"));
@@ -64,50 +65,52 @@ 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,'api2','token');
INSERT INTO "django_content_type" VALUES(11,'api2','tokenv2');
INSERT INTO "django_content_type" VALUES(12,'avatar','avatar');
INSERT INTO "django_content_type" VALUES(13,'avatar','groupavatar');
INSERT INTO "django_content_type" VALUES(14,'base','groupenabledmodule');
INSERT INTO "django_content_type" VALUES(15,'base','clientlogintoken');
INSERT INTO "django_content_type" VALUES(16,'base','userenabledmodule');
INSERT INTO "django_content_type" VALUES(17,'base','filecomment');
INSERT INTO "django_content_type" VALUES(18,'base','filediscuss');
INSERT INTO "django_content_type" VALUES(19,'base','devicetoken');
INSERT INTO "django_content_type" VALUES(20,'base','commandslastcheck');
INSERT INTO "django_content_type" VALUES(21,'base','innerpubmsg');
INSERT INTO "django_content_type" VALUES(22,'base','innerpubmsgreply');
INSERT INTO "django_content_type" VALUES(23,'base','userlastlogin');
INSERT INTO "django_content_type" VALUES(24,'base','userstarredfiles');
INSERT INTO "django_content_type" VALUES(25,'contacts','contact');
INSERT INTO "django_content_type" VALUES(26,'institutions','institutionadmin');
INSERT INTO "django_content_type" VALUES(27,'institutions','institution');
INSERT INTO "django_content_type" VALUES(28,'invitations','invitation');
INSERT INTO "django_content_type" VALUES(29,'wiki','personalwiki');
INSERT INTO "django_content_type" VALUES(30,'wiki','groupwiki');
INSERT INTO "django_content_type" VALUES(31,'group','publicgroup');
INSERT INTO "django_content_type" VALUES(32,'group','groupmessage');
INSERT INTO "django_content_type" VALUES(33,'group','messageattachment');
INSERT INTO "django_content_type" VALUES(34,'group','messagereply');
INSERT INTO "django_content_type" VALUES(35,'message','usermsgattachment');
INSERT INTO "django_content_type" VALUES(36,'message','usermsglastcheck');
INSERT INTO "django_content_type" VALUES(37,'message','usermessage');
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','uploadlinkshare');
INSERT INTO "django_content_type" VALUES(45,'share','fileshare');
INSERT INTO "django_content_type" VALUES(46,'share','anonymousshare');
INSERT INTO "django_content_type" VALUES(47,'share','orgfileshare');
INSERT INTO "django_content_type" VALUES(48,'sysadmin_extra','userloginlog');
INSERT INTO "django_content_type" VALUES(49,'organizations','orgmemberquota');
INSERT INTO "django_content_type" VALUES(50,'two_factor','phonedevice');
INSERT INTO "django_content_type" VALUES(51,'two_factor','statictoken');
INSERT INTO "django_content_type" VALUES(52,'two_factor','totpdevice');
INSERT INTO "django_content_type" VALUES(53,'two_factor','staticdevice');
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,'invitations','invitation');
INSERT INTO "django_content_type" VALUES(31,'wiki','personalwiki');
INSERT INTO "django_content_type" VALUES(32,'wiki','groupwiki');
INSERT INTO "django_content_type" VALUES(33,'group','publicgroup');
INSERT INTO "django_content_type" VALUES(34,'group','groupmessage');
INSERT INTO "django_content_type" VALUES(35,'group','messageattachment');
INSERT INTO "django_content_type" VALUES(36,'group','messagereply');
INSERT INTO "django_content_type" VALUES(37,'message','usermsgattachment');
INSERT INTO "django_content_type" VALUES(38,'message','usermsglastcheck');
INSERT INTO "django_content_type" VALUES(39,'message','usermessage');
INSERT INTO "django_content_type" VALUES(40,'notifications','notification');
INSERT INTO "django_content_type" VALUES(41,'notifications','usernotification');
INSERT INTO "django_content_type" VALUES(42,'options','useroptions');
INSERT INTO "django_content_type" VALUES(43,'profile','profile');
INSERT INTO "django_content_type" VALUES(44,'profile','detailedprofile');
INSERT INTO "django_content_type" VALUES(45,'share','privatefiledirshare');
INSERT INTO "django_content_type" VALUES(46,'share','uploadlinkshare');
INSERT INTO "django_content_type" VALUES(47,'share','fileshare');
INSERT INTO "django_content_type" VALUES(48,'share','anonymousshare');
INSERT INTO "django_content_type" VALUES(49,'share','orgfileshare');
INSERT INTO "django_content_type" VALUES(50,'sysadmin_extra','userloginlog');
INSERT INTO "django_content_type" VALUES(51,'organizations','orgmemberquota');
INSERT INTO "django_content_type" VALUES(52,'two_factor','phonedevice');
INSERT INTO "django_content_type" VALUES(53,'two_factor','statictoken');
INSERT INTO "django_content_type" VALUES(54,'two_factor','totpdevice');
INSERT INTO "django_content_type" VALUES(55,'two_factor','staticdevice');
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"));
@@ -118,16 +121,19 @@ CREATE TABLE "post_office_attachment_emails" ("id" integer NOT NULL PRIMARY KEY
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 "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_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);
DELETE FROM sqlite_sequence;
INSERT INTO "sqlite_sequence" VALUES('django_migrations',14);
INSERT INTO "sqlite_sequence" VALUES('django_content_type',53);
INSERT INTO "sqlite_sequence" VALUES('django_migrations',15);
INSERT INTO "sqlite_sequence" VALUES('django_content_type',55);
INSERT INTO "sqlite_sequence" VALUES('invitations_invitation',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");
@@ -180,6 +186,8 @@ CREATE INDEX "post_office_email_ed24d584" ON "post_office_email" ("scheduled_tim
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");
CREATE INDEX "two_factor_statictoken_94a08da1" ON "two_factor_statictoken" ("token");
CREATE INDEX "two_factor_statictoken_9379346c" ON "two_factor_statictoken" ("device_id");
COMMIT;