You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1db30b9
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: table/sys_Comment.sql
+9-10Lines changed: 9 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -23,15 +23,14 @@ DROP TABLE IF EXISTS `Comment`;
23
23
/*!40101 SET @saved_cs_client = @@character_set_client */;
24
24
/*!40101 SET character_set_client = utf8 */;
25
25
CREATETABLE `Comment` (
26
-
`id`bigint(20) NOT NULL,
27
-
`parentId`int(5) NOT NULL,
28
-
`workId`int(5) NOT NULL,
29
-
`userId`int(5) NOT NULL,
30
-
`targetUserId`int(5) NOT NULL,
26
+
`id`bigint(15) NOT NULL,
27
+
`parentId`bigint(15) NOT NULL,
28
+
`momentId`bigint(15) NOT NULL,
29
+
`userId`bigint(15) NOT NULL,
30
+
`toUserId`bigint(15) NOT NULL,
31
31
`content`varchar(1000) DEFAULT NULL,
32
-
`targetUserName`varchar(20) NOT NULL,
33
-
`userName`varchar(20) NOT NULL,
34
-
`title`varchar(60) DEFAULT NULL,
32
+
`date`timestampNULL DEFAULT CURRENT_TIMESTAMP,
33
+
`workId`bigint(15) NOT NULL COMMENT '兼容测试以前的Work(被Moment替代)',
35
34
PRIMARY KEY (`id`)
36
35
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
37
36
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -42,7 +41,7 @@ CREATE TABLE `Comment` (
42
41
43
42
LOCK TABLES `Comment` WRITE;
44
43
/*!40000 ALTER TABLE `Comment` DISABLE KEYS */;
45
-
INSERT INTO `Comment` VALUES (3,0,371,82002,59960,'This is a Content...-3','targetUserName-59960','userName-85560',NULL),(4,0,470,310,14604,'This is a Content...-4','targetUserName-14604','userName-93781',NULL),(13,0,58,64,6914,'This is a Content...-13','targetUserName-6914','userName-70118',NULL),(22,221,470,332,5904,'This is a Content...-22','targetUserName-5904','userName-11679',NULL),(44,0,170,7073,6378,'This is a Content...-44','targetUserName-6378','userName-88645',NULL),(45,0,301,93793,99700,'This is a Content...-45','targetUserName-99700','userName-30075',NULL),(47,4,470,10,5477,'This is a Content...-47','targetUserName-5477','userName-80271',NULL),(51,45,301,903,8711,'This is a Content...-51','targetUserName-8711','userName-97675',NULL),(54,0,170,3,62122,'This is a Content...-54','targetUserName-62122','userName-82381',NULL),(68,0,371,2314,959,'This is a Content...-68','targetUserName-959','userName-92565',NULL),(76,45,301,93793,42688,'This is a Content...-76','targetUserName-42688','userName-20740',NULL),(77,13,58,90814,35234,'This is a Content...-77','targetUserName-35234','userName-94888',NULL),(97,13,58,90814,14326,'This is a Content...-97','targetUserName-14326','userName-6289',NULL),(99,44,170,793,7166,'This is a Content...-99','targetUserName-7166','userName-22949',NULL),(157,0,371,34,7162,'This is a Content...-13','targetUserName-7162','userName-5526',NULL);
44
+
INSERT INTO `Comment` VALUES (3,0,371,82002,59960,'This is a Content...-3','2017-02-01 11:20:50',371),(4,0,470,38710,82002,'This is a Content...-4','2017-02-01 11:20:50',470),(13,0,58,82005,93793,'This is a Content...-13','2017-02-01 11:20:50',58),(22,221,470,82001,70793,'This is a Content...-22','2017-02-01 11:20:50',470),(44,0,170,82003,93793,'This is a Content...-44','2017-02-01 11:20:50',170),(45,0,301,93793,99700,'This is a Content...-45','2017-02-01 11:20:50',301),(47,4,470,70793,70793,'This is a Content...-47','2017-02-01 11:20:50',470),(51,45,301,82003,70793,'This is a Content...-51','2017-02-01 11:20:50',301),(54,0,170,82004,93793,'This is a Content...-54','2017-02-01 11:20:50',170),(68,0,371,82005,70793,'This is a Content...-68','2017-02-01 11:20:50',371),(76,45,301,93793,70793,'This is a Content...-76','2017-02-01 11:20:50',301),(77,13,58,93793,35234,'This is a Content...-77','2017-02-01 11:20:50',58),(97,13,58,82006,14326,'This is a Content...-97','2017-02-01 11:20:50',58),(99,44,170,70793,7166,'This is a Content...-99','2017-02-01 11:20:50',170),(157,0,371,93793,70793,'This is a Content...-13','2017-02-01 11:20:50',371);
46
45
/*!40000 ALTER TABLE `Comment` ENABLE KEYS */;
47
46
UNLOCK TABLES;
48
47
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@@ -55,4 +54,4 @@ UNLOCK TABLES;
55
54
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
0 commit comments