1 use crate::newtypes::LocalSiteId;
2 #[cfg(feature = "full")]
3 use crate::schema::tagline;
4 use serde::{Deserialize, Serialize};
6 #[derive(PartialEq, Eq, Debug, Clone, Serialize, Deserialize)]
7 #[cfg_attr(feature = "full", derive(Queryable, Associations, Identifiable))]
8 #[cfg_attr(feature = "full", diesel(table_name = tagline))]
11 diesel(belongs_to(crate::source::local_site::LocalSite))
15 pub local_site_id: LocalSiteId,
17 pub published: chrono::NaiveDateTime,
18 pub updated: Option<chrono::NaiveDateTime>,
21 #[derive(Clone, Default)]
22 #[cfg_attr(feature = "full", derive(Insertable, AsChangeset))]
23 #[cfg_attr(feature = "full", diesel(table_name = tagline))]
24 pub struct TaglineForm {
25 pub local_site_id: LocalSiteId,
27 pub updated: Option<chrono::NaiveDateTime>,