1 use crate::newtypes::LanguageId;
2 #[cfg(feature = "full")]
3 use crate::schema::language;
4 use serde::{Deserialize, Serialize};
5 #[cfg(feature = "full")]
8 #[derive(Clone, PartialEq, Eq, Debug, Serialize, Deserialize)]
9 #[cfg_attr(feature = "full", derive(Queryable, Identifiable, TS))]
10 #[cfg_attr(feature = "full", diesel(table_name = language))]
11 #[cfg_attr(feature = "full", ts(export))]