tianxiaoliang commented on a change in pull request #759:
URL: 
https://github.com/apache/servicecomb-service-center/pull/759#discussion_r531822962



##########
File path: datasource/mongo/database.go
##########
@@ -42,36 +40,41 @@ const (
        CollectionSchema   = "schema"
        CollectionRule     = "rule"
        CollectionInstance = "instance"
+       CollectionDep      = "dependency"
 )
 
 const (
+       DepsQueueUUID     = "0"
        ErrorDuplicateKey = 11000
 )
 
 const (
-       Domain             = "domain"
-       Project            = "project"
-       ServiceTag         = "tags"
-       SchemaID           = "schemaid"
-       RuleServiceID      = "serviceid"
-       RuleRuleID         = "ruleinfo.ruleid"
-       SchemaServiceID    = "serviceid"
-       ServiceServiceID   = "serviceinfo.serviceid"
-       ServiceProperty    = "serviceinfo.properties"
-       ServiceModTime     = "serviceinfo.modtimestamp"
-       ServiceEnv         = "serviceinfo.environment"
-       ServiceAppID       = "serviceinfo.appid"
-       ServiceServiceName = "serviceinfo.servicename"
-       ServiceAlias       = "serviceinfo.alias"
-       ServiceVersion     = "serviceinfo.version"
-       ServiceSchemas     = "serviceinfo.schemas"
-       RuleAttribute      = "ruleinfo.attribute"
-       RulePattern        = "ruleinfo.pattern"
-       RuleModTime        = "ruleinfo.modtimestamp"
-       RuleDescription    = "ruleinfo.description"
-       RuleRuletype       = "ruleinfo.ruletype"
-       SchemaInfo         = "schemainfo"
-       SchemaSummary      = "schemasummary"
+       Domain         = "domain"
+       Project        = "project"
+       Tag            = "tags"
+       SchemaID       = "schemaid"
+       ServiceID      = "serviceid"
+       RuleID         = "ruleid"
+       ServiceInfo    = "serviceinfo"
+       Property       = "properties"
+       ModTime        = "modtimestamp"

Review comment:
       对于字段用Column开头,collection用Collection开头,增加易读性




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to