ORE Studio 0.0.4
Loading...
Searching...
No Matches
database_info.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 *
3 * Copyright (C) 2026 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#ifndef ORES_DATABASE_DOMAIN_DATABASE_INFO_HPP
21#define ORES_DATABASE_DOMAIN_DATABASE_INFO_HPP
22
23#include <chrono>
24#include <string>
25#include <boost/uuid/uuid.hpp>
26
27namespace ores::database::domain {
28
36struct database_info final {
42 boost::uuids::uuid id;
43
49 std::string schema_version;
50
56 std::string build_environment;
57
63 std::string git_commit;
64
70 std::string git_date;
71
75 std::chrono::system_clock::time_point created_at;
76};
77
78}
79
80#endif
Domain types for database operations.
Definition change_reason_constants.hpp:26
Build and schema metadata recorded when the database was created or recreated.
Definition database_info.hpp:36
std::string build_environment
Build environment identifier.
Definition database_info.hpp:56
boost::uuids::uuid id
Fixed UUID identifying the singleton database info record.
Definition database_info.hpp:42
std::chrono::system_clock::time_point created_at
Timestamp when this record was created.
Definition database_info.hpp:75
std::string git_date
Date and time of the git commit that created this database.
Definition database_info.hpp:70
std::string schema_version
Database schema version matching the application version.
Definition database_info.hpp:49
std::string git_commit
Short git commit hash of the code that created this database.
Definition database_info.hpp:63