10 #[cfg(feature = "full")]
11 use crate::schema::local_user_language;
12 use serde::{Deserialize, Serialize};
14 #[derive(Clone, PartialEq, Eq, Debug, Serialize, Deserialize)]
15 #[cfg_attr(feature = "full", derive(Queryable, Identifiable))]
16 #[cfg_attr(feature = "full", diesel(table_name = local_user_language))]
17 pub struct LocalUserLanguage {
19 pub id: LocalUserLanguageId,
20 pub local_user_id: LocalUserId,
21 pub language_id: LanguageId,
25 #[cfg_attr(feature = "full", derive(Insertable, AsChangeset))]
26 #[cfg_attr(feature = "full", diesel(table_name = local_user_language))]
27 pub struct LocalUserLanguageForm {
28 pub local_user_id: LocalUserId,
29 pub language_id: LanguageId,
32 #[cfg(feature = "full")]
33 use crate::schema::community_language;
35 #[derive(Clone, PartialEq, Eq, Debug, Serialize, Deserialize)]
36 #[cfg_attr(feature = "full", derive(Queryable, Identifiable))]
37 #[cfg_attr(feature = "full", diesel(table_name = community_language))]
38 pub struct CommunityLanguage {
40 pub id: CommunityLanguageId,
41 pub community_id: CommunityId,
42 pub language_id: LanguageId,
46 #[cfg_attr(feature = "full", derive(Insertable, AsChangeset))]
47 #[cfg_attr(feature = "full", diesel(table_name = community_language))]
48 pub struct CommunityLanguageForm {
49 pub community_id: CommunityId,
50 pub language_id: LanguageId,
53 #[cfg(feature = "full")]
54 use crate::schema::site_language;
56 #[derive(Clone, PartialEq, Eq, Debug, Serialize, Deserialize)]
57 #[cfg_attr(feature = "full", derive(Queryable, Identifiable))]
58 #[cfg_attr(feature = "full", diesel(table_name = site_language))]
59 pub struct SiteLanguage {
61 pub id: SiteLanguageId,
63 pub language_id: LanguageId,
66 #[derive(Clone, Debug)]
67 #[cfg_attr(feature = "full", derive(Insertable, AsChangeset))]
68 #[cfg_attr(feature = "full", diesel(table_name = site_language))]
69 pub struct SiteLanguageForm {
71 pub language_id: LanguageId,