Structs changed to uppercase, use definitions corrected

This commit is contained in:
gulliver 2021-05-31 07:32:57 +02:00
parent 5aebc32e87
commit 1645ed984d
1 changed files with 9 additions and 9 deletions

View File

@ -1,7 +1,7 @@
use super::schema::posts;
use super::schema::*;
#[derive(Serialize, Queryable)]
pub struct user {
pub struct User {
id: i64,
nickname: String,
pronouns: String,
@ -17,7 +17,7 @@ pub struct user {
}
#[derive(Serialize, Queryable)]
pub struct user_skill {
pub struct UserSkill {
id: i64,
user_id: i64,
skill_id: i64,
@ -25,7 +25,7 @@ pub struct user_skill {
}
#[derive(Serialize, Queryable)]
pub struct user_language {
pub struct UserLanguage {
id: i64,
user_id: i64,
@ -40,7 +40,7 @@ pub struct skill {
}
#[derive(Serialize, Queryable)]
pub struct user_experience {
pub struct UserExperience {
id: i64,
user_id: i64,
description: String,
@ -49,14 +49,14 @@ pub struct user_experience {
}
#[derive(Serialize, Queryable)]
pub struct user_search_topic {
pub struct UserSearchTopic {
id: i64,
user_id: i64,
topic_id: i64,
}
#[derive(Serialize, Queryable)]
pub struct user_contact {
pub struct UserContact {
id: i64,
user_id: i64,
contact_type_id: i64,
@ -64,7 +64,7 @@ pub struct user_contact {
}
#[derive(Serialize, Queryable)]
pub struct topic {
pub struct Topic {
id: i64,
name: String,
}
@ -82,7 +82,7 @@ pub struct experience {
}
#[derive(Serialize, Queryable)]
pub struct contact_type {
pub struct ContactType {
id: i64,
name: String,
}