about summary refs log tree commit diff stats
path: root/crates/rocie-server/src/storage/sql/product_amount.rs
blob: a31ddc25606add51b0b0d823b3d4349706b4e1a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// rocie - An enterprise grocery management system
//
// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de>
// SPDX-License-Identifier: GPL-3.0-or-later
//
// This file is part of Rocie.
//
// You should have received a copy of the License along with this program.
// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.

use serde::{Deserialize, Serialize};
use utoipa::ToSchema;

use crate::storage::sql::{product::ProductId, unit::UnitAmount};

#[derive(Debug, Clone, ToSchema, Serialize, Deserialize, PartialEq)]
pub(crate) struct ProductAmount {
    pub(crate) product_id: ProductId,
    pub(crate) amount: UnitAmount,
}