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 (
	Audit = bson.M{
		"name": "audit",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"type", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"enable", 1},
				},
				options.Index(),
			},
		},
	}
)
View Source
var (
	Profile = bson.M{
		"name": "profile",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"info.nickname", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"info.sex", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"info.address.type", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"info.address.nation", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"info.address.province", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"info.address.city", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"info.address.district", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"status", 1},
				},
				options.Index(),
			},
		},
	}
)
View Source
var (
	ProfileAudit = bson.M{
		"name": "profile_audit",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"type", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"status", 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