Skip to content

Commit 3397875

Browse files
committed
Refine schema
1 parent 5decc67 commit 3397875

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed

src/schema.patch

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
2+
CLionIntelliJ IDEAPhpStormWebStorm
3+
diff --git a/src/schema.rs b/src/schema.rs
4+
index df884e4..18e08cd 100644
5+
--- a/src/schema.rs
6+
+++ b/src/schema.rs
7+
@@ -1,3 +1,5 @@
8+
+#![allow(unused_imports)]
9+
+
10+
table! {
11+
use diesel::sql_types::*;
12+
use diesel_full_text_search::{TsVector as Tsvector};
13+
@@ -171,12 +173,6 @@
14+
///
15+
/// (Automatically generated by Diesel.)
16+
created_at -> Timestamp,
17+
- /// The `path` column of the `categories` table.
18+
- ///
19+
- /// Its SQL type is `Ltree`.
20+
- ///
21+
- /// (Automatically generated by Diesel.)
22+
- path -> Ltree,
23+
}
24+
}
25+
26+
@@ -678,6 +674,24 @@
27+
}
28+
29+
table! {
30+
+ /// Representation of the `recent_crate_downloads` view.
31+
+ ///
32+
+ /// This data represents the downloads in the last 90 days.
33+
+ /// This view does not contain realtime data.
34+
+ /// It is refreshed by the `update-downloads` script.
35+
+ recent_crate_downloads (crate_id) {
36+
+ /// The `crate_id` column of the `recent_crate_downloads` view.
37+
+ ///
38+
+ /// Its SQL type is `Integer`.
39+
+ crate_id -> Integer,
40+
+ /// The `downloads` column of the `recent_crate_downloads` table.
41+
+ ///
42+
+ /// Its SQL type is `BigInt`.
43+
+ downloads -> BigInt,
44+
+ }
45+
+}
46+
+
47+
+table! {
48+
use diesel::sql_types::*;
49+
use diesel_full_text_search::{TsVector as Tsvector};
50+
51+
@@ -1003,7 +1017,8 @@
52+
joinable!(badges -> crates (crate_id));
53+
joinable!(crate_owner_invitations -> crates (crate_id));
54+
joinable!(crate_owners -> crates (crate_id));
55+
-joinable!(crate_owners -> users (created_by));
56+
+joinable!(crate_owners -> teams (owner_id));
57+
+joinable!(crate_owners -> users (owner_id));
58+
joinable!(crates_categories -> categories (category_id));
59+
joinable!(crates_categories -> crates (crate_id));
60+
joinable!(crates_keywords -> crates (crate_id));
61+
@@ -1016,6 +1031,7 @@
62+
joinable!(publish_limit_buckets -> users (user_id));
63+
joinable!(publish_rate_overrides -> users (user_id));
64+
joinable!(readme_renderings -> versions (version_id));
65+
+joinable!(recent_crate_downloads -> crates (crate_id));
66+
joinable!(version_authors -> versions (version_id));
67+
joinable!(version_downloads -> versions (version_id));
68+
joinable!(version_owner_actions -> api_tokens (api_token_id));
69+
@@ -1043,6 +1059,7 @@
70+
publish_limit_buckets,
71+
publish_rate_overrides,
72+
readme_renderings,
73+
+ recent_crate_downloads,
74+
reserved_crate_names,
75+
teams,
76+
users,

0 commit comments

Comments
 (0)