2023-06-23 11:02:05 +00:00
|
|
|
diff --git a/crates/db_schema/src/schema.rs b/crates/db_schema/src/schema.rs
|
|
|
|
index 255c6422..f2ccf5e2 100644
|
|
|
|
--- a/crates/db_schema/src/schema.rs
|
|
|
|
+++ b/crates/db_schema/src/schema.rs
|
|
|
|
@@ -2,16 +2,12 @@
|
2023-04-17 19:19:51 +00:00
|
|
|
|
2023-06-23 11:02:05 +00:00
|
|
|
pub mod sql_types {
|
2023-06-23 09:47:12 +00:00
|
|
|
#[derive(diesel::sql_types::SqlType)]
|
2023-06-23 11:02:05 +00:00
|
|
|
#[diesel(postgres_type(name = "listing_type_enum"))]
|
|
|
|
pub struct ListingTypeEnum;
|
|
|
|
|
|
|
|
- #[derive(diesel::sql_types::SqlType)]
|
2023-04-17 19:19:51 +00:00
|
|
|
- #[diesel(postgres_type(name = "ltree"))]
|
|
|
|
- pub struct Ltree;
|
|
|
|
-
|
2023-06-23 11:02:05 +00:00
|
|
|
#[derive(diesel::sql_types::SqlType)]
|
2023-04-17 19:19:51 +00:00
|
|
|
#[diesel(postgres_type(name = "registration_mode_enum"))]
|
|
|
|
pub struct RegistrationModeEnum;
|
|
|
|
|
2023-06-23 11:02:05 +00:00
|
|
|
#[derive(diesel::sql_types::SqlType)]
|
|
|
|
#[diesel(postgres_type(name = "sort_type_enum"))]
|
2023-06-27 10:38:53 +00:00
|
|
|
@@ -76,13 +76,13 @@ diesel::table! {
|
|
|
|
published -> Timestamp,
|
2023-06-23 11:02:05 +00:00
|
|
|
}
|
|
|
|
}
|
2023-04-17 19:19:51 +00:00
|
|
|
|
|
|
|
diesel::table! {
|
|
|
|
use diesel::sql_types::*;
|
|
|
|
- use super::sql_types::Ltree;
|
|
|
|
+ use diesel_ltree::sql_types::Ltree;
|
|
|
|
|
|
|
|
comment (id) {
|
|
|
|
id -> Int4,
|
2023-06-23 11:02:05 +00:00
|
|
|
creator_id -> Int4,
|
|
|
|
post_id -> Int4,
|
|
|
|
content -> Text,
|