source:
src-tauri/src/models/product.rs
| Last change on this file was a4ca79c, checked in by , 4 days ago | |
|---|---|
|
|
| File size: 256 bytes | |
| Line | |
|---|---|
| 1 | use serde::Serialize; |
| 2 | use sqlx::FromRow; |
| 3 | use rust_decimal::Decimal; |
| 4 | |
| 5 | |
| 6 | #[derive(Serialize, FromRow)] |
| 7 | pub struct Product { |
| 8 | pub product_id: i32, |
| 9 | pub category_id: i32, |
| 10 | pub name: String, |
| 11 | pub description: Option<String>, |
| 12 | pub price: Decimal, |
| 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
