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 (
	Area = bson.M{
		"name": "area",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"province_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"city_id", 1},
				},
				options.Index(),
			},
		},
	}
)
View Source
var (
	City = bson.M{
		"name": "city",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"province_id", 1},
				},
				options.Index(),
			},
		},
	}
)
View Source
var (
	Country = bson.M{
		"name":  "country",
		"index": []mongo.IndexModel{},
	}
)
View Source
var (
	Province = bson.M{
		"name":  "province",
		"index": []mongo.IndexModel{},
	}
)
View Source
var (
	Street = bson.M{
		"name": "street",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"province_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"city_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"area_id", 1},
				},
				options.Index(),
			},
		},
	}
)
View Source
var (
	Village = bson.M{
		"name": "village",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"province_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"city_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"area_id", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"street_id", 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