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 (
	Dictionary = bson.M{
		"name": "dictionary",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"key", 1},
				},
				options.Index().SetUnique(true),
			},
			{
				bson.D{
					{"key", 1},
					{"values.key", 1},
				},
				options.Index().SetUnique(true),
			},
			{
				bson.D{
					{"key", 1},
					{"values.lable", 1},
				},
				options.Index().SetUnique(true),
			},
			{
				bson.D{
					{"key", 1},
					{"values.value", 1},
				},
				options.Index().SetUnique(true),
			},
			{
				bson.D{
					{"values.enable", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"enable", 1},
					{"delete", 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