schema

package
v0.0.0-...-2f69930 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Category = bson.M{
		"name": "category",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"type", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"parent_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"tags", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"location", "2dsphere"},
				},
				options.Index(),
			},
			{
				bson.D{
					{"visibility", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"limit_user_at_least_level", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"only_user_id_not_limit_user_level", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"limit_user_role", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"only_user_id_not_limit_user_role", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"limit_user_tag", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"only_user_id_not_limit_user_tag", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"status", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"enable", 1},
				},
				options.Index(),
			},
		},
	}
)
View Source
var (
	Content = bson.M{
		"name": "content",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"publish_user_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"type", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"publish_type", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"associate_type", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"associate_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"limit_associate_type", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"category_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"subject_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"at_users", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"author", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"location", "2dsphere"},
				},
				options.Index(),
			},
			{
				bson.D{
					{"publish_user_id", 1},
					{"user_tags", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"visibility", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"hide_detail", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"only_user_id_show_detail", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"copy", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"limit_user_at_least_level", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"only_user_id_not_limit_user_level", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"limit_user_role", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"only_user_id_not_limit_user_role", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"limit_user_tag", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"only_user_id_not_limit_user_tag", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"only_user_id_discuss", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"only_publish_user_id_can_reply_discuss", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"only_publish_user_id_can_not_reply_discuss", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"hide_discuss", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"only_user_id_show_discuss", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"forbid_forward", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"forbid_download", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"forbid_discuss", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"tags", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"bestest", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"reliable", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"readed_user", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"wanted_user", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"liked_user", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"hated_user", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"discuss_estimate_total", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"value", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"start_time", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"end_time", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"status", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"create_time", -1},
				},
				options.Index(),
			},
		},
	}
)
View Source
var (
	Discuss = bson.M{
		"name": "discuss",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"type", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"object_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"publish_user_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"reply_discuss_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"visibility", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"evaluation", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"location", "2dsphere"},
				},
				options.Index(),
			},
			{
				bson.D{
					{"status", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"create_time", -1},
				},
				options.Index(),
			},
		},
	}
)
View Source
var (
	Favorites = bson.M{
		"name":  "favorites",
		"index": []mongo.IndexModel{},
	}
)
View Source
var (
	FollowContent = bson.M{
		"name": "follow_content",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"follow_relationship_id", 1},
					{"user_id", 1},
					{"content_id", 1},
				},
				options.Index().SetUnique(true),
			},
			{
				bson.D{
					{"user_id", 1},
					{"content_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"follow_relationship_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"user_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"content_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"extension_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"type", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"readed_time", 1},
				},
				options.Index(),
			},
		},
	}
)
View Source
var (
	FollowRelationship = bson.M{
		"name": "follow_relationship",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"type", 1},
					{"user_id", 1},
					{"object_id", 1},
				},
				options.Index().SetUnique(true),
			},
			{
				bson.D{
					{"type", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"user_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"type", 1},
					{"object_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"object_owner_user_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"mutual", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"stealth", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"extension_id", 1},
				},
				options.Index(),
			},
		},
	}
)
View Source
var (
	GroupMessage = bson.M{
		"name":  "group_message",
		"index": []mongo.IndexModel{},
	}
)
View Source
var (
	KeywordBan = bson.M{
		"name":  "keyword_ban",
		"index": []mongo.IndexModel{},
	}
)
View Source
var (
	Message = bson.M{
		"name":  "message",
		"index": []mongo.IndexModel{},
	}
)
View Source
var (
	PublishIntervene = bson.M{
		"name": "publish_intervene",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"user_id", 1},
					{"type", 1},
				},
				options.Index().SetUnique(true),
			},
			{
				bson.D{
					{"user_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"type", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"status", 1},
				},
				options.Index(),
			},
		},
	}
)
View Source
var (
	Share = bson.M{
		"name":  "share",
		"index": []mongo.IndexModel{},
	}
)
View Source
var (
	Subject = bson.M{
		"name": "subject",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"publish_user_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"type", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"subject", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"tags", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"location", "2dsphere"},
				},
				options.Index(),
			},
			{
				bson.D{
					{"visibility", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"limit_user_at_least_level", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"only_user_id_not_limit_user_level", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"limit_user_role", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"only_user_id_not_limit_user_role", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"limit_user_tag", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"only_user_id_not_limit_user_tag", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"status", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"enable", 1},
				},
				options.Index(),
			},
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL