@@ -12,91 +12,91 @@ var (
12
12
Schema = map [string ][]mongo.IndexModel {
13
13
collUsers : {
14
14
{
15
- Keys : bson.D {{ "sub" , 1 } },
15
+ Keys : bson.M { "sub" : 1 },
16
16
Options : options .Index ().SetName ("sub_unique" ).SetUnique (true ),
17
17
},
18
18
},
19
19
collSkylinks : {
20
20
{
21
- Keys : bson.D {{ "skylink" , 1 } },
21
+ Keys : bson.M { "skylink" : 1 },
22
22
Options : options .Index ().SetName ("skylink_unique" ).SetUnique (true ),
23
23
},
24
24
},
25
25
collUploads : {
26
26
{
27
- Keys : bson.D {{ "user_id" , 1 } },
27
+ Keys : bson.M { "user_id" : 1 },
28
28
Options : options .Index ().SetName ("user_id" ),
29
29
},
30
30
{
31
- Keys : bson.D {{ "skylink_id" , 1 } },
31
+ Keys : bson.M { "skylink_id" : 1 },
32
32
Options : options .Index ().SetName ("skylink_id" ),
33
33
},
34
34
},
35
35
collDownloads : {
36
36
{
37
- Keys : bson.D {{ "user_id" , 1 } },
37
+ Keys : bson.M { "user_id" : 1 },
38
38
Options : options .Index ().SetName ("user_id" ),
39
39
},
40
40
{
41
- Keys : bson.D {{ "skylink_id" , 1 } },
41
+ Keys : bson.M { "skylink_id" : 1 },
42
42
Options : options .Index ().SetName ("skylink_id" ),
43
43
},
44
44
},
45
45
collEmails : {
46
46
{
47
- Keys : bson.D {{ "failed_attempts" , 1 } },
47
+ Keys : bson.M { "failed_attempts" : 1 },
48
48
Options : options .Index ().SetName ("failed_attempts" ),
49
49
},
50
50
{
51
- Keys : bson.D {{ "locked_by" , 1 } },
51
+ Keys : bson.M { "locked_by" : 1 },
52
52
Options : options .Index ().SetName ("locked_by" ),
53
53
},
54
54
{
55
- Keys : bson.D {{ "sent_at" , 1 } },
55
+ Keys : bson.M { "sent_at" : 1 },
56
56
Options : options .Index ().SetName ("sent_at" ),
57
57
},
58
58
{
59
- Keys : bson.D {{ "sent_by" , 1 } },
59
+ Keys : bson.M { "sent_by" : 1 },
60
60
Options : options .Index ().SetName ("sent_by" ),
61
61
},
62
62
},
63
63
collChallenges : {
64
64
{
65
- Keys : bson.D {{ "challenge" , 1 } },
65
+ Keys : bson.M { "challenge" : 1 },
66
66
Options : options .Index ().SetName ("challenge" ),
67
67
},
68
68
{
69
- Keys : bson.D {{ "type" , 1 } },
69
+ Keys : bson.M { "type" : 1 },
70
70
Options : options .Index ().SetName ("type" ),
71
71
},
72
72
{
73
- Keys : bson.D {{ "expires_at" , 1 } },
73
+ Keys : bson.M { "expires_at" : 1 },
74
74
Options : options .Index ().SetName ("expires_at" ),
75
75
},
76
76
},
77
77
collUnconfirmedUserUpdates : {
78
78
{
79
- Keys : bson.D {{ "challenge_id" , 1 } },
79
+ Keys : bson.M { "challenge_id" : 1 },
80
80
Options : options .Index ().SetName ("challenge_id" ),
81
81
},
82
82
{
83
- Keys : bson.D {{ "expires_at" , 1 } },
83
+ Keys : bson.M { "expires_at" : 1 },
84
84
Options : options .Index ().SetName ("expires_at" ),
85
85
},
86
86
},
87
87
collConfiguration : {
88
88
{
89
- Keys : bson.D {{ "key" , 1 } },
89
+ Keys : bson.M { "key" : 1 },
90
90
Options : options .Index ().SetName ("key_unique" ).SetUnique (true ),
91
91
},
92
92
},
93
93
collAPIKeys : {
94
94
{
95
- Keys : bson.D {{ "key" , 1 } },
95
+ Keys : bson.M { "key" : 1 },
96
96
Options : options .Index ().SetName ("key_unique" ).SetUnique (true ),
97
97
},
98
98
{
99
- Keys : bson.D {{ "user_id" , 1 } },
99
+ Keys : bson.M { "user_id" : 1 },
100
100
Options : options .Index ().SetName ("user_id" ),
101
101
},
102
102
},
0 commit comments