1 use crate::newtypes::InstanceId;
4 #[cfg(feature = "full")]
5 use crate::schema::instance;
7 #[derive(PartialEq, Eq, Debug)]
8 #[cfg_attr(feature = "full", derive(Queryable, Identifiable))]
9 #[cfg_attr(feature = "full", diesel(table_name = instance))]
13 pub published: chrono::NaiveDateTime,
14 pub updated: Option<chrono::NaiveDateTime>,
17 #[cfg_attr(feature = "full", derive(Insertable, AsChangeset))]
18 #[cfg_attr(feature = "full", diesel(table_name = instance))]
19 pub struct InstanceForm {
21 pub updated: Option<chrono::NaiveDateTime>,