|
11 | 11 | } |
12 | 12 |
|
13 | 13 | diesel::table! { |
14 | | -@@ -67,9 +65,9 @@ |
15 | | - /// (Automatically generated by Diesel.) |
16 | | - revoked -> Bool, |
| 14 | +@@ -25,7 +23,7 @@ |
| 15 | + /// (Automatically generated by Diesel.) |
| 16 | + api_tokens (id) { |
17 | 17 | /// NULL or an array of crate scope patterns (see RFC #2947) |
18 | 18 | - crate_scopes -> Nullable<Array<Nullable<Text>>>, |
19 | 19 | + crate_scopes -> Nullable<Array<Text>>, |
| 20 | + /// The `created_at` column of the `api_tokens` table. |
| 21 | + /// |
| 22 | + /// Its SQL type is `Timestamptz`. |
| 23 | +@@ -33,7 +31,7 @@ |
| 24 | + /// (Automatically generated by Diesel.) |
| 25 | + created_at -> Timestamptz, |
20 | 26 | /// An array of endpoint scopes or NULL for the `legacy` endpoint scope (see RFC #2947) |
21 | 27 | - endpoint_scopes -> Nullable<Array<Nullable<Text>>>, |
22 | 28 | + endpoint_scopes -> Nullable<Array<Text>>, |
23 | 29 | /// The `expired_at` column of the `api_tokens` table. |
24 | 30 | /// |
25 | 31 | /// Its SQL type is `Nullable<Timestamptz>`. |
26 | | -@@ -175,12 +173,6 @@ |
| 32 | +@@ -169,12 +167,6 @@ |
27 | 33 | /// |
28 | 34 | /// (Automatically generated by Diesel.) |
29 | | - created_at -> Timestamptz, |
| 35 | + id -> Int4, |
30 | 36 | - /// The `path` column of the `categories` table. |
31 | 37 | - /// |
32 | 38 | - /// Its SQL type is `Ltree`. |
33 | 39 | - /// |
34 | 40 | - /// (Automatically generated by Diesel.) |
35 | 41 | - path -> Ltree, |
36 | | - } |
37 | | - } |
38 | | - |
39 | | -@@ -483,7 +475,7 @@ |
| 42 | + /// The `slug` column of the `categories` table. |
| 43 | + /// |
| 44 | + /// Its SQL type is `Varchar`. |
| 45 | +@@ -477,7 +469,7 @@ |
40 | 46 | /// Its SQL type is `Array<Nullable<Text>>`. |
41 | 47 | /// |
42 | 48 | /// (Automatically generated by Diesel.) |
43 | 49 | - features -> Array<Nullable<Text>>, |
44 | 50 | + features -> Array<Text>, |
45 | | - /// The `target` column of the `dependencies` table. |
| 51 | + /// The `id` column of the `dependencies` table. |
46 | 52 | /// |
47 | | - /// Its SQL type is `Nullable<Varchar>`. |
48 | | -@@ -710,6 +702,24 @@ |
| 53 | + /// Its SQL type is `Int4`. |
| 54 | +@@ -722,6 +714,24 @@ |
49 | 55 | } |
50 | 56 |
|
51 | 57 | diesel::table! { |
|
70 | 76 | /// Representation of the `reserved_crate_names` table. |
71 | 77 | /// |
72 | 78 | /// (Automatically generated by Diesel.) |
73 | | -@@ -1094,7 +1104,8 @@ |
| 79 | +@@ -1130,7 +1140,8 @@ |
74 | 80 | diesel::joinable!(crate_downloads -> crates (crate_id)); |
75 | 81 | diesel::joinable!(crate_owner_invitations -> crates (crate_id)); |
76 | 82 | diesel::joinable!(crate_owners -> crates (crate_id)); |
|
80 | 86 | diesel::joinable!(crates_categories -> categories (category_id)); |
81 | 87 | diesel::joinable!(crates_categories -> crates (crate_id)); |
82 | 88 | diesel::joinable!(crates_keywords -> crates (crate_id)); |
83 | | -@@ -1110,6 +1121,7 @@ |
| 89 | +@@ -1146,6 +1157,7 @@ |
84 | 90 | diesel::joinable!(publish_limit_buckets -> users (user_id)); |
85 | 91 | diesel::joinable!(publish_rate_overrides -> users (user_id)); |
86 | 92 | diesel::joinable!(readme_renderings -> versions (version_id)); |
87 | 93 | +diesel::joinable!(recent_crate_downloads -> crates (crate_id)); |
88 | 94 | diesel::joinable!(trustpub_configs_github -> crates (crate_id)); |
89 | 95 | diesel::joinable!(trustpub_configs_gitlab -> crates (crate_id)); |
90 | 96 | diesel::joinable!(version_downloads -> versions (version_id)); |
91 | | -@@ -1140,6 +1152,7 @@ |
| 97 | +@@ -1178,6 +1190,7 @@ |
92 | 98 | publish_limit_buckets, |
93 | 99 | publish_rate_overrides, |
94 | 100 | readme_renderings, |
|
0 commit comments