source: src-tauri/src/models/order_item.rs

main
Last change on this file was a4ca79c, checked in by Georgi Paunkov <paunkovgeorgi@…>, 4 days ago

Initial commit

  • Property mode set to 100644
File size: 280 bytes
Line 
1use serde::Serialize;
2use sqlx::FromRow;
3use rust_decimal::Decimal;
4
5
6#[derive(Serialize, FromRow)]
7pub struct OrderItem {
8 pub order_id: i32,
9 pub item_number: i32,
10 pub product_id: i32,
11 pub product_name: String,
12 pub quantity: i32,
13 pub unit_price: Decimal,
14}
Note: See TracBrowser for help on using the repository browser.