summaryrefslogtreecommitdiff
path: root/dichroism/src/models.rs
blob: 0485237be5fcb2ebc2531816c558a19713bb5e61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#[derive(Debug, Queryable, Serialize, Clone)]
pub struct ProductImg {
    pub id: i32,
    pub path: String,
}

use super::schema::images;
#[table_name = "images"]
#[derive(Debug, Insertable)]
pub struct NewProductImg {
    pub path: String,
}