1 use crate::newtypes::InstanceId;
2 #[cfg(feature = "full")]
3 use crate::schema::instance;
6 #[derive(PartialEq, Eq, Debug)]
7 #[cfg_attr(feature = "full", derive(Queryable, Identifiable))]
8 #[cfg_attr(feature = "full", diesel(table_name = instance))]
12 pub published: chrono::NaiveDateTime,
13 pub updated: Option<chrono::NaiveDateTime>,
16 #[cfg_attr(feature = "full", derive(Insertable, AsChangeset))]
17 #[cfg_attr(feature = "full", diesel(table_name = instance))]
18 pub struct InstanceForm {
20 pub updated: Option<chrono::NaiveDateTime>,