diff options
Diffstat (limited to 'dichroism/src/models/new_photo.rs')
-rw-r--r-- | dichroism/src/models/new_photo.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dichroism/src/models/new_photo.rs b/dichroism/src/models/new_photo.rs new file mode 100644 index 0000000..d348e95 --- /dev/null +++ b/dichroism/src/models/new_photo.rs @@ -0,0 +1,6 @@ +use crate::schema::photos; +#[table_name = "photos"] +#[derive(Debug, Insertable)] +pub struct NewPhoto { + pub path: String, +} |