From 264e5ff691e0283e639dc70a1191b13053ccdf5c Mon Sep 17 00:00:00 2001 From: WriterV2 Date: Sat, 26 Oct 2024 23:31:37 +0200 Subject: Feat: Add initial entities --- src/db/product.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/db/product.rs (limited to 'src/db/product.rs') diff --git a/src/db/product.rs b/src/db/product.rs new file mode 100644 index 0000000..e112679 --- /dev/null +++ b/src/db/product.rs @@ -0,0 +1,8 @@ +#[derive(Debug, serde::Serialize, sqlx::FromRow)] +pub struct Product { + pub id: i64, + pub name: String, + pub description: String, + pub uploaddate: i64, + pub updatedate: i64, +} -- cgit v1.2.3