diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-03-19 05:38:42 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-03-19 05:38:42 +0100 |
| commit | 6ff6c5af6510b321bf54b384d1263c50f1a122c0 (patch) | |
| tree | 2153c8e42b762ec29905f1095e578c7fee8b9855 /crates/rocie-server/src | |
| parent | build(rocie-server/nix/package): Include required dependencies (diff) | |
| download | server-6ff6c5af6510b321bf54b384d1263c50f1a122c0.zip | |
chore(treewide): Add missing license headers
Diffstat (limited to 'crates/rocie-server/src')
65 files changed, 643 insertions, 2 deletions
diff --git a/crates/rocie-server/src/api/get/auth/inventory.rs b/crates/rocie-server/src/api/get/auth/inventory.rs index 24a8e3d..056a8a1 100644 --- a/crates/rocie-server/src/api/get/auth/inventory.rs +++ b/crates/rocie-server/src/api/get/auth/inventory.rs @@ -1,3 +1,13 @@ +// 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 actix_identity::Identity; use actix_web::{HttpResponse, Responder, Result, get, web}; diff --git a/crates/rocie-server/src/api/get/auth/mod.rs b/crates/rocie-server/src/api/get/auth/mod.rs index 0821222..5465abd 100644 --- a/crates/rocie-server/src/api/get/auth/mod.rs +++ b/crates/rocie-server/src/api/get/auth/mod.rs @@ -1,3 +1,13 @@ +// 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 actix_web::web; use log::info; use percent_encoding::percent_decode_str; diff --git a/crates/rocie-server/src/api/get/auth/product.rs b/crates/rocie-server/src/api/get/auth/product.rs index 7e32a0b..85047b5 100644 --- a/crates/rocie-server/src/api/get/auth/product.rs +++ b/crates/rocie-server/src/api/get/auth/product.rs @@ -1,3 +1,13 @@ +// 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 actix_identity::Identity; use actix_web::{HttpRequest, HttpResponse, Responder, Result, get, web}; diff --git a/crates/rocie-server/src/api/get/auth/product_parent.rs b/crates/rocie-server/src/api/get/auth/product_parent.rs index 6c3351d..0892ab6 100644 --- a/crates/rocie-server/src/api/get/auth/product_parent.rs +++ b/crates/rocie-server/src/api/get/auth/product_parent.rs @@ -1,3 +1,13 @@ +// 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 actix_identity::Identity; use actix_web::{HttpResponse, Responder, error::Result, get, web}; diff --git a/crates/rocie-server/src/api/get/auth/recipe.rs b/crates/rocie-server/src/api/get/auth/recipe.rs index e3032b9..e4e5b9a 100644 --- a/crates/rocie-server/src/api/get/auth/recipe.rs +++ b/crates/rocie-server/src/api/get/auth/recipe.rs @@ -1,3 +1,13 @@ +// 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 actix_identity::Identity; use actix_web::{HttpRequest, HttpResponse, Responder, error::Result, get, web}; diff --git a/crates/rocie-server/src/api/get/auth/recipe_parent.rs b/crates/rocie-server/src/api/get/auth/recipe_parent.rs index d54082b..6a44cd7 100644 --- a/crates/rocie-server/src/api/get/auth/recipe_parent.rs +++ b/crates/rocie-server/src/api/get/auth/recipe_parent.rs @@ -1,3 +1,13 @@ +// 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 actix_identity::Identity; use actix_web::{HttpResponse, Responder, error::Result, get, web}; diff --git a/crates/rocie-server/src/api/get/auth/unit.rs b/crates/rocie-server/src/api/get/auth/unit.rs index 980d9c7..b91fd35 100644 --- a/crates/rocie-server/src/api/get/auth/unit.rs +++ b/crates/rocie-server/src/api/get/auth/unit.rs @@ -1,3 +1,13 @@ +// 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 actix_identity::Identity; use actix_web::{HttpResponse, Responder, Result, get, web}; diff --git a/crates/rocie-server/src/api/get/auth/unit_property.rs b/crates/rocie-server/src/api/get/auth/unit_property.rs index f5b070a..a5e8af5 100644 --- a/crates/rocie-server/src/api/get/auth/unit_property.rs +++ b/crates/rocie-server/src/api/get/auth/unit_property.rs @@ -1,3 +1,13 @@ +// 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 actix_identity::Identity; use actix_web::{HttpResponse, Responder, Result, get, web}; diff --git a/crates/rocie-server/src/api/get/auth/user.rs b/crates/rocie-server/src/api/get/auth/user.rs index e4a5046..3d73f23 100644 --- a/crates/rocie-server/src/api/get/auth/user.rs +++ b/crates/rocie-server/src/api/get/auth/user.rs @@ -1,3 +1,13 @@ +// 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 actix_identity::Identity; use actix_web::{HttpResponse, Responder, Result, get, web}; diff --git a/crates/rocie-server/src/api/get/mod.rs b/crates/rocie-server/src/api/get/mod.rs index c6ee9ab..5dcd86c 100644 --- a/crates/rocie-server/src/api/get/mod.rs +++ b/crates/rocie-server/src/api/get/mod.rs @@ -1,2 +1,12 @@ +// 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>. + pub(crate) mod auth; pub(crate) mod no_auth; diff --git a/crates/rocie-server/src/api/get/no_auth/mod.rs b/crates/rocie-server/src/api/get/no_auth/mod.rs index 5274b4c..891c780 100644 --- a/crates/rocie-server/src/api/get/no_auth/mod.rs +++ b/crates/rocie-server/src/api/get/no_auth/mod.rs @@ -1,3 +1,13 @@ +// 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 actix_web::web; pub(crate) mod state; diff --git a/crates/rocie-server/src/api/get/no_auth/state.rs b/crates/rocie-server/src/api/get/no_auth/state.rs index 31cbfa5..e4fec3a 100644 --- a/crates/rocie-server/src/api/get/no_auth/state.rs +++ b/crates/rocie-server/src/api/get/no_auth/state.rs @@ -1,3 +1,13 @@ +// 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 actix_identity::Identity; use actix_web::{HttpResponse, Responder, Result, get, web}; diff --git a/crates/rocie-server/src/api/mod.rs b/crates/rocie-server/src/api/mod.rs index c573122..755bf18 100644 --- a/crates/rocie-server/src/api/mod.rs +++ b/crates/rocie-server/src/api/mod.rs @@ -1,2 +1,12 @@ +// 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>. + pub(crate) mod get; pub(crate) mod set; diff --git a/crates/rocie-server/src/api/set/auth/barcode.rs b/crates/rocie-server/src/api/set/auth/barcode.rs index 1d97852..9815ae0 100644 --- a/crates/rocie-server/src/api/set/auth/barcode.rs +++ b/crates/rocie-server/src/api/set/auth/barcode.rs @@ -1,3 +1,13 @@ +// 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 actix_identity::Identity; use actix_web::{HttpResponse, Responder, Result, post, web}; use log::debug; diff --git a/crates/rocie-server/src/api/set/auth/mod.rs b/crates/rocie-server/src/api/set/auth/mod.rs index 6379f22..1e9057c 100644 --- a/crates/rocie-server/src/api/set/auth/mod.rs +++ b/crates/rocie-server/src/api/set/auth/mod.rs @@ -1,3 +1,13 @@ +// 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 actix_web::web; pub(crate) mod barcode; diff --git a/crates/rocie-server/src/api/set/auth/product.rs b/crates/rocie-server/src/api/set/auth/product.rs index b2a751f..c043739 100644 --- a/crates/rocie-server/src/api/set/auth/product.rs +++ b/crates/rocie-server/src/api/set/auth/product.rs @@ -1,3 +1,13 @@ +// 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 actix_identity::Identity; use actix_web::{HttpResponse, Responder, Result, post, web}; use serde::Deserialize; diff --git a/crates/rocie-server/src/api/set/auth/product_parent.rs b/crates/rocie-server/src/api/set/auth/product_parent.rs index 416875b..cee128b 100644 --- a/crates/rocie-server/src/api/set/auth/product_parent.rs +++ b/crates/rocie-server/src/api/set/auth/product_parent.rs @@ -1,3 +1,13 @@ +// 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 actix_identity::Identity; use actix_web::{HttpResponse, Responder, Result, post, web}; use serde::Deserialize; diff --git a/crates/rocie-server/src/api/set/auth/recipe.rs b/crates/rocie-server/src/api/set/auth/recipe.rs index b9f930d..638c153 100644 --- a/crates/rocie-server/src/api/set/auth/recipe.rs +++ b/crates/rocie-server/src/api/set/auth/recipe.rs @@ -1,3 +1,13 @@ +// 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 actix_identity::Identity; use actix_web::{HttpResponse, Responder, error::Result, post, web}; use serde::Deserialize; diff --git a/crates/rocie-server/src/api/set/auth/recipe_parent.rs b/crates/rocie-server/src/api/set/auth/recipe_parent.rs index e020dd3..0634d0f 100644 --- a/crates/rocie-server/src/api/set/auth/recipe_parent.rs +++ b/crates/rocie-server/src/api/set/auth/recipe_parent.rs @@ -1,3 +1,13 @@ +// 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 actix_identity::Identity; use actix_web::{HttpResponse, Responder, Result, post, web}; use serde::Deserialize; diff --git a/crates/rocie-server/src/api/set/auth/unit.rs b/crates/rocie-server/src/api/set/auth/unit.rs index 21d1e11..d900f6a 100644 --- a/crates/rocie-server/src/api/set/auth/unit.rs +++ b/crates/rocie-server/src/api/set/auth/unit.rs @@ -1,3 +1,13 @@ +// 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 actix_identity::Identity; use actix_web::{HttpResponse, Responder, Result, post, web}; use serde::Deserialize; diff --git a/crates/rocie-server/src/api/set/auth/unit_property.rs b/crates/rocie-server/src/api/set/auth/unit_property.rs index 2958e1f..b3e524f 100644 --- a/crates/rocie-server/src/api/set/auth/unit_property.rs +++ b/crates/rocie-server/src/api/set/auth/unit_property.rs @@ -1,3 +1,13 @@ +// 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 actix_identity::Identity; use actix_web::{HttpResponse, Responder, Result, post, web}; use serde::Deserialize; diff --git a/crates/rocie-server/src/api/set/auth/user.rs b/crates/rocie-server/src/api/set/auth/user.rs index 1f262d5..9ac8353 100644 --- a/crates/rocie-server/src/api/set/auth/user.rs +++ b/crates/rocie-server/src/api/set/auth/user.rs @@ -1,3 +1,13 @@ +// 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 actix_identity::Identity; use actix_web::{HttpResponse, Responder, Result, post, web}; use serde::Deserialize; diff --git a/crates/rocie-server/src/api/set/mod.rs b/crates/rocie-server/src/api/set/mod.rs index c6ee9ab..5dcd86c 100644 --- a/crates/rocie-server/src/api/set/mod.rs +++ b/crates/rocie-server/src/api/set/mod.rs @@ -1,2 +1,12 @@ +// 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>. + pub(crate) mod auth; pub(crate) mod no_auth; diff --git a/crates/rocie-server/src/api/set/no_auth/mod.rs b/crates/rocie-server/src/api/set/no_auth/mod.rs index 8a67d57..9f2c09c 100644 --- a/crates/rocie-server/src/api/set/no_auth/mod.rs +++ b/crates/rocie-server/src/api/set/no_auth/mod.rs @@ -1,3 +1,13 @@ +// 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 actix_web::web; pub(crate) mod user; diff --git a/crates/rocie-server/src/api/set/no_auth/user.rs b/crates/rocie-server/src/api/set/no_auth/user.rs index 69758a7..58ee376 100644 --- a/crates/rocie-server/src/api/set/no_auth/user.rs +++ b/crates/rocie-server/src/api/set/no_auth/user.rs @@ -1,3 +1,13 @@ +// 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 actix_identity::Identity; use actix_web::{HttpMessage, HttpRequest, HttpResponse, Responder, Result, post, web}; use serde::{Deserialize, Serialize}; diff --git a/crates/rocie-server/src/app.rs b/crates/rocie-server/src/app.rs index 59eed28..0467ef7 100644 --- a/crates/rocie-server/src/app.rs +++ b/crates/rocie-server/src/app.rs @@ -1,3 +1,13 @@ +// 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 std::{cell::OnceCell, path::PathBuf, sync::OnceLock}; use sqlx::{SqlitePool, sqlite::SqliteConnectOptions}; diff --git a/crates/rocie-server/src/cli.rs b/crates/rocie-server/src/cli.rs index b198510..386082e 100644 --- a/crates/rocie-server/src/cli.rs +++ b/crates/rocie-server/src/cli.rs @@ -1,3 +1,13 @@ +// 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 std::path::PathBuf; use clap::{Parser, Subcommand}; diff --git a/crates/rocie-server/src/main.rs b/crates/rocie-server/src/main.rs index c57c3a2..528a113 100644 --- a/crates/rocie-server/src/main.rs +++ b/crates/rocie-server/src/main.rs @@ -1,3 +1,13 @@ +// 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 actix_web::{ App, HttpServer, cookie::{Key, SameSite}, diff --git a/crates/rocie-server/src/storage/migrate/defaults.rs b/crates/rocie-server/src/storage/migrate/defaults.rs index 3a2019c..99d5c66 100644 --- a/crates/rocie-server/src/storage/migrate/defaults.rs +++ b/crates/rocie-server/src/storage/migrate/defaults.rs @@ -1,3 +1,13 @@ +// 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 crate::{ app::App, storage::sql::{insert::Operations, unit::Unit, unit_property::UnitProperty}, diff --git a/crates/rocie-server/src/storage/migrate/mod.rs b/crates/rocie-server/src/storage/migrate/mod.rs index 6044440..b39b58b 100644 --- a/crates/rocie-server/src/storage/migrate/mod.rs +++ b/crates/rocie-server/src/storage/migrate/mod.rs @@ -1,3 +1,13 @@ +// 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 std::{ fmt::Display, time::{SystemTime, UNIX_EPOCH}, diff --git a/crates/rocie-server/src/storage/migrate/sql/0->1.sql b/crates/rocie-server/src/storage/migrate/sql/0->1.sql index dd7ce5f..e8bcd95 100644 --- a/crates/rocie-server/src/storage/migrate/sql/0->1.sql +++ b/crates/rocie-server/src/storage/migrate/sql/0->1.sql @@ -1,3 +1,13 @@ +-- 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>. + -- All tables should be declared STRICT, as I actually like to have types checking (and a -- db that doesn't lie to me). diff --git a/crates/rocie-server/src/storage/mod.rs b/crates/rocie-server/src/storage/mod.rs index 55745c0..bc76037 100644 --- a/crates/rocie-server/src/storage/mod.rs +++ b/crates/rocie-server/src/storage/mod.rs @@ -1,3 +1,13 @@ +// 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>. + pub(crate) mod migrate; pub(crate) mod sql; pub(crate) mod txn_log; diff --git a/crates/rocie-server/src/storage/sql/barcode.rs b/crates/rocie-server/src/storage/sql/barcode.rs index f15d399..c16ac3c 100644 --- a/crates/rocie-server/src/storage/sql/barcode.rs +++ b/crates/rocie-server/src/storage/sql/barcode.rs @@ -1,3 +1,13 @@ +// 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; diff --git a/crates/rocie-server/src/storage/sql/config.rs b/crates/rocie-server/src/storage/sql/config.rs index d62859c..f84697a 100644 --- a/crates/rocie-server/src/storage/sql/config.rs +++ b/crates/rocie-server/src/storage/sql/config.rs @@ -1,3 +1,13 @@ +// 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; diff --git a/crates/rocie-server/src/storage/sql/get/barcode/mod.rs b/crates/rocie-server/src/storage/sql/get/barcode/mod.rs index 4eba105..99cb723 100644 --- a/crates/rocie-server/src/storage/sql/get/barcode/mod.rs +++ b/crates/rocie-server/src/storage/sql/get/barcode/mod.rs @@ -1,3 +1,13 @@ +// 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 crate::{ app::App, storage::sql::{ diff --git a/crates/rocie-server/src/storage/sql/get/config/mod.rs b/crates/rocie-server/src/storage/sql/get/config/mod.rs index 92f39c2..a251867 100644 --- a/crates/rocie-server/src/storage/sql/get/config/mod.rs +++ b/crates/rocie-server/src/storage/sql/get/config/mod.rs @@ -1,3 +1,13 @@ +// 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 crate::{app::App, storage::sql::config::Config}; use sqlx::query; diff --git a/crates/rocie-server/src/storage/sql/get/mod.rs b/crates/rocie-server/src/storage/sql/get/mod.rs index e3520da..1d47994 100644 --- a/crates/rocie-server/src/storage/sql/get/mod.rs +++ b/crates/rocie-server/src/storage/sql/get/mod.rs @@ -1,3 +1,13 @@ +// 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>. + pub(crate) mod barcode; pub(crate) mod config; pub(crate) mod product; diff --git a/crates/rocie-server/src/storage/sql/get/product/mod.rs b/crates/rocie-server/src/storage/sql/get/product/mod.rs index 3d8b6e6..a852f2b 100644 --- a/crates/rocie-server/src/storage/sql/get/product/mod.rs +++ b/crates/rocie-server/src/storage/sql/get/product/mod.rs @@ -1,3 +1,13 @@ +// 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 crate::{ app::App, storage::sql::{ diff --git a/crates/rocie-server/src/storage/sql/get/product_amount/mod.rs b/crates/rocie-server/src/storage/sql/get/product_amount/mod.rs index 9ff2165..d6778d5 100644 --- a/crates/rocie-server/src/storage/sql/get/product_amount/mod.rs +++ b/crates/rocie-server/src/storage/sql/get/product_amount/mod.rs @@ -1,3 +1,13 @@ +// 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 crate::{ app::App, storage::sql::{ diff --git a/crates/rocie-server/src/storage/sql/get/product_parent/mod.rs b/crates/rocie-server/src/storage/sql/get/product_parent/mod.rs index 243ae1e..cda7fbf 100644 --- a/crates/rocie-server/src/storage/sql/get/product_parent/mod.rs +++ b/crates/rocie-server/src/storage/sql/get/product_parent/mod.rs @@ -1,3 +1,13 @@ +// 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 crate::{ app::App, storage::sql::product_parent::{ProductParent, ProductParentId}, diff --git a/crates/rocie-server/src/storage/sql/get/recipe/mod.rs b/crates/rocie-server/src/storage/sql/get/recipe/mod.rs index f433541..d31409e 100644 --- a/crates/rocie-server/src/storage/sql/get/recipe/mod.rs +++ b/crates/rocie-server/src/storage/sql/get/recipe/mod.rs @@ -1,3 +1,13 @@ +// 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 crate::{ app::App, storage::sql::{ diff --git a/crates/rocie-server/src/storage/sql/get/recipe_parent/mod.rs b/crates/rocie-server/src/storage/sql/get/recipe_parent/mod.rs index d53e853..3bdbf04 100644 --- a/crates/rocie-server/src/storage/sql/get/recipe_parent/mod.rs +++ b/crates/rocie-server/src/storage/sql/get/recipe_parent/mod.rs @@ -1,3 +1,13 @@ +// 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 crate::{ app::App, storage::sql::{ diff --git a/crates/rocie-server/src/storage/sql/get/unit/mod.rs b/crates/rocie-server/src/storage/sql/get/unit/mod.rs index 2c85970..62819d3 100644 --- a/crates/rocie-server/src/storage/sql/get/unit/mod.rs +++ b/crates/rocie-server/src/storage/sql/get/unit/mod.rs @@ -1,3 +1,13 @@ +// 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 crate::{ app::App, storage::sql::{ diff --git a/crates/rocie-server/src/storage/sql/get/unit_property/mod.rs b/crates/rocie-server/src/storage/sql/get/unit_property/mod.rs index be24181..8655de7 100644 --- a/crates/rocie-server/src/storage/sql/get/unit_property/mod.rs +++ b/crates/rocie-server/src/storage/sql/get/unit_property/mod.rs @@ -1,3 +1,13 @@ +// 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 crate::{ app::App, storage::sql::{ diff --git a/crates/rocie-server/src/storage/sql/get/user/mod.rs b/crates/rocie-server/src/storage/sql/get/user/mod.rs index e09ef67..161da43 100644 --- a/crates/rocie-server/src/storage/sql/get/user/mod.rs +++ b/crates/rocie-server/src/storage/sql/get/user/mod.rs @@ -1,3 +1,13 @@ +// 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 crate::{ app::App, storage::sql::user::{PasswordHash, User, UserId}, diff --git a/crates/rocie-server/src/storage/sql/insert/barcode/mod.rs b/crates/rocie-server/src/storage/sql/insert/barcode/mod.rs index 11707b9..fec9c0f 100644 --- a/crates/rocie-server/src/storage/sql/insert/barcode/mod.rs +++ b/crates/rocie-server/src/storage/sql/insert/barcode/mod.rs @@ -1,3 +1,13 @@ +// 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 std::str::FromStr; use serde::{Deserialize, Serialize}; diff --git a/crates/rocie-server/src/storage/sql/insert/config/mod.rs b/crates/rocie-server/src/storage/sql/insert/config/mod.rs index 597e633..a26cab5 100644 --- a/crates/rocie-server/src/storage/sql/insert/config/mod.rs +++ b/crates/rocie-server/src/storage/sql/insert/config/mod.rs @@ -1,3 +1,13 @@ +// 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 sqlx::query; diff --git a/crates/rocie-server/src/storage/sql/insert/mod.rs b/crates/rocie-server/src/storage/sql/insert/mod.rs index c106b2b..47ce9e4 100644 --- a/crates/rocie-server/src/storage/sql/insert/mod.rs +++ b/crates/rocie-server/src/storage/sql/insert/mod.rs @@ -1,3 +1,13 @@ +// 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 std::{fmt::Display, mem}; use crate::app::App; diff --git a/crates/rocie-server/src/storage/sql/insert/product/mod.rs b/crates/rocie-server/src/storage/sql/insert/product/mod.rs index 455eb4f..1892bbf 100644 --- a/crates/rocie-server/src/storage/sql/insert/product/mod.rs +++ b/crates/rocie-server/src/storage/sql/insert/product/mod.rs @@ -1,3 +1,13 @@ +// 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 sqlx::query; use uuid::Uuid; diff --git a/crates/rocie-server/src/storage/sql/insert/product_parent/mod.rs b/crates/rocie-server/src/storage/sql/insert/product_parent/mod.rs index 72fb564..8b2fcd7 100644 --- a/crates/rocie-server/src/storage/sql/insert/product_parent/mod.rs +++ b/crates/rocie-server/src/storage/sql/insert/product_parent/mod.rs @@ -1,3 +1,13 @@ +// 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 sqlx::query; use uuid::Uuid; diff --git a/crates/rocie-server/src/storage/sql/insert/recipe/mod.rs b/crates/rocie-server/src/storage/sql/insert/recipe/mod.rs index b60874f..63d9107 100644 --- a/crates/rocie-server/src/storage/sql/insert/recipe/mod.rs +++ b/crates/rocie-server/src/storage/sql/insert/recipe/mod.rs @@ -1,3 +1,13 @@ +// 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 cooklang::{Converter, CooklangParser, Extensions}; use serde::{Deserialize, Serialize}; use sqlx::query; diff --git a/crates/rocie-server/src/storage/sql/insert/recipe_parent/mod.rs b/crates/rocie-server/src/storage/sql/insert/recipe_parent/mod.rs index 95bc6f1..1a16463 100644 --- a/crates/rocie-server/src/storage/sql/insert/recipe_parent/mod.rs +++ b/crates/rocie-server/src/storage/sql/insert/recipe_parent/mod.rs @@ -1,3 +1,13 @@ +// 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 sqlx::query; use uuid::Uuid; diff --git a/crates/rocie-server/src/storage/sql/insert/unit/mod.rs b/crates/rocie-server/src/storage/sql/insert/unit/mod.rs index 815cb1e..faa4193 100644 --- a/crates/rocie-server/src/storage/sql/insert/unit/mod.rs +++ b/crates/rocie-server/src/storage/sql/insert/unit/mod.rs @@ -1,3 +1,13 @@ +// 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 sqlx::query; use uuid::Uuid; diff --git a/crates/rocie-server/src/storage/sql/insert/unit_property/mod.rs b/crates/rocie-server/src/storage/sql/insert/unit_property/mod.rs index d340465..9a96ba1 100644 --- a/crates/rocie-server/src/storage/sql/insert/unit_property/mod.rs +++ b/crates/rocie-server/src/storage/sql/insert/unit_property/mod.rs @@ -1,3 +1,13 @@ +// 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 sqlx::query; use uuid::Uuid; diff --git a/crates/rocie-server/src/storage/sql/insert/user/mod.rs b/crates/rocie-server/src/storage/sql/insert/user/mod.rs index 325253e..4f338db 100644 --- a/crates/rocie-server/src/storage/sql/insert/user/mod.rs +++ b/crates/rocie-server/src/storage/sql/insert/user/mod.rs @@ -1,3 +1,13 @@ +// 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 sqlx::query; use uuid::Uuid; diff --git a/crates/rocie-server/src/storage/sql/mod.rs b/crates/rocie-server/src/storage/sql/mod.rs index f1d7cb1..af53b4b 100644 --- a/crates/rocie-server/src/storage/sql/mod.rs +++ b/crates/rocie-server/src/storage/sql/mod.rs @@ -1,3 +1,13 @@ +// 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>. + pub(crate) mod get; pub(crate) mod insert; diff --git a/crates/rocie-server/src/storage/sql/product.rs b/crates/rocie-server/src/storage/sql/product.rs index c2c32ec..88f4c93 100644 --- a/crates/rocie-server/src/storage/sql/product.rs +++ b/crates/rocie-server/src/storage/sql/product.rs @@ -1,3 +1,13 @@ +// 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; diff --git a/crates/rocie-server/src/storage/sql/product_amount.rs b/crates/rocie-server/src/storage/sql/product_amount.rs index dafe43a..a31ddc2 100644 --- a/crates/rocie-server/src/storage/sql/product_amount.rs +++ b/crates/rocie-server/src/storage/sql/product_amount.rs @@ -1,3 +1,13 @@ +// 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; diff --git a/crates/rocie-server/src/storage/sql/product_parent.rs b/crates/rocie-server/src/storage/sql/product_parent.rs index f689024..15ed578 100644 --- a/crates/rocie-server/src/storage/sql/product_parent.rs +++ b/crates/rocie-server/src/storage/sql/product_parent.rs @@ -1,3 +1,13 @@ +// 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; diff --git a/crates/rocie-server/src/storage/sql/recipe.rs b/crates/rocie-server/src/storage/sql/recipe.rs index 7347b4b..38aa266 100644 --- a/crates/rocie-server/src/storage/sql/recipe.rs +++ b/crates/rocie-server/src/storage/sql/recipe.rs @@ -1,5 +1,15 @@ #![expect(clippy::unused_async)] +// 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 log::error; use serde::{Deserialize, Serialize}; use utoipa::ToSchema; diff --git a/crates/rocie-server/src/storage/sql/recipe_parent.rs b/crates/rocie-server/src/storage/sql/recipe_parent.rs index 6225a4b..da4ea5e 100644 --- a/crates/rocie-server/src/storage/sql/recipe_parent.rs +++ b/crates/rocie-server/src/storage/sql/recipe_parent.rs @@ -1,3 +1,13 @@ +// 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; diff --git a/crates/rocie-server/src/storage/sql/unit.rs b/crates/rocie-server/src/storage/sql/unit.rs index dc16e4c..4d0368c 100644 --- a/crates/rocie-server/src/storage/sql/unit.rs +++ b/crates/rocie-server/src/storage/sql/unit.rs @@ -1,3 +1,13 @@ +// 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; diff --git a/crates/rocie-server/src/storage/sql/unit_property.rs b/crates/rocie-server/src/storage/sql/unit_property.rs index adb4767..f64949e 100644 --- a/crates/rocie-server/src/storage/sql/unit_property.rs +++ b/crates/rocie-server/src/storage/sql/unit_property.rs @@ -1,3 +1,13 @@ +// 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; diff --git a/crates/rocie-server/src/storage/sql/user.rs b/crates/rocie-server/src/storage/sql/user.rs index 2bac555..dd0cf06 100644 --- a/crates/rocie-server/src/storage/sql/user.rs +++ b/crates/rocie-server/src/storage/sql/user.rs @@ -1,3 +1,13 @@ +// 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 std::fmt::Display; use argon2::{ diff --git a/crates/rocie-server/src/storage/txn_log.rs b/crates/rocie-server/src/storage/txn_log.rs index d07b514..7fba1cf 100644 --- a/crates/rocie-server/src/storage/txn_log.rs +++ b/crates/rocie-server/src/storage/txn_log.rs @@ -1,9 +1,10 @@ -// yt - A fully featured command line YouTube client +// rocie - An enterprise grocery management system // // Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> // SPDX-License-Identifier: GPL-3.0-or-later // -// This file is part of Yt. +// 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>. |
