ORE Studio 0.0.4
Loading...
Searching...
No Matches
change_reason_constants.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 *
3 * Copyright (C) 2025 Marco Craveiro <marco.craveiro@gmail.com>
4 *
5 * This program is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License as published by the Free Software
7 * Foundation; either version 3 of the License, or (at your option) any later
8 * version.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13 * details.
14 *
15 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc., 51
17 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 *
19 */
20
21#ifndef ORES_DATABASE_DOMAIN_CHANGE_REASON_CONSTANTS_HPP
22#define ORES_DATABASE_DOMAIN_CHANGE_REASON_CONSTANTS_HPP
23
24#include <string_view>
25
26namespace ores::database::domain::change_reason_constants {
27
35namespace codes {
36
42constexpr std::string_view new_record = "system.new_record";
43
49constexpr std::string_view external_data_import = "system.external_data_import";
50
57constexpr std::string_view non_material_update = "common.non_material_update";
58
59} // namespace codes
60
66namespace categories {
67
73constexpr std::string_view common = "common";
74
78constexpr std::string_view system = "system";
79
80} // namespace categories
81
82} // namespace ores::database::domain::change_reason_constants
83
84#endif
constexpr std::string_view non_material_update
Used for updates that don't change material business data.
Definition change_reason_constants.hpp:57
constexpr std::string_view new_record
Used when creating new records in the system.
Definition change_reason_constants.hpp:42
constexpr std::string_view external_data_import
Used for data loaded from external sources (e.g. ORE XML import).
Definition change_reason_constants.hpp:49
constexpr std::string_view system
System-generated reasons not typically shown to users.
Definition change_reason_constants.hpp:78
constexpr std::string_view common
Common reasons applicable to most entity types.
Definition change_reason_constants.hpp:73