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 (
	Contacts = bson.M{
		"name": "contacts",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"user_id", 1},
					{"contact_user_id", 1},
				},
				options.Index().SetUnique(true),
			},
			{
				bson.D{
					{"user_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"contact_user_id", 1},
				},
				options.Index(),
			},
		},
	}
)
View Source
var (
	ContactsApply = bson.M{
		"name": "contacts_apply",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"user_id", 1},
					{"applyer_user_id", 1},
				},
				options.Index().SetUnique(true),
			},
			{
				bson.D{
					{"user_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"applyer_user_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"refuse", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"pass", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"delete", 1},
				},
				options.Index(),
			},
		},
	}
)
View Source
var (
	ContactsBlacklist = bson.M{
		"name": "contacts_blacklist",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"user_id", 1},
					{"blacklist_user_id", 1},
				},
				options.Index().SetUnique(true),
			},
			{
				bson.D{
					{"user_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"blacklist_user_id", 1},
				},
				options.Index(),
			},
		},
	}
)
View Source
var (
	Group = bson.M{
		"name": "group",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"_id", 1},
					{"members.user_id", 1},
				},
				options.Index().SetUnique(true),
			},
			{
				bson.D{
					{"type", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"user_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"hide", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"hide_members", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"join", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"audit", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"status", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"delete", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"members.adminer", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"members.stealth", 1},
				},
				options.Index(),
			},
		},
	}
)
View Source
var (
	GroupApply = bson.M{
		"name": "group_apply",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"group_id", 1},
					{"applyer_user_id", 1},
				},
				options.Index().SetUnique(true),
			},
			{
				bson.D{
					{"group_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"applyer_user_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"refuse", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"pass", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"delete", 1},
				},
				options.Index(),
			},
		},
	}
)
View Source
var (
	GroupBlacklist = bson.M{
		"name": "group",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"group_id", 1},
					{"blacklist_user_id", 1},
				},
				options.Index().SetUnique(true),
			},
			{
				bson.D{
					{"group_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"blacklist_user_id", 1},
				},
				options.Index(),
			},
		},
	}
)
View Source
var (
	Visitor = bson.M{
		"name": "visitor",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"owner_user_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"visitor_user_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"hide", 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