//SPDX-FileCopyrightText: 2024 Yury Gubich //SPDX-License-Identifier: GPL-3.0-or-later #pragma once #include #include #include #include #include namespace DB { class Asset { public: Asset (); Asset (const std::vector& vec); void parse (const std::vector& vec); nlohmann::json toJSON () const; public: unsigned int id; unsigned int owner; unsigned int currency; std::string title; std::string icon; // `color` INTEGER UNSIGNED DEFAULT 0, // `balance` DECIMAL (20, 5) DEFAULT 0, // `type` INTEGER UNSIGNED NOT NULL, bool archived; }; }