mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-22 01:20:39 +00:00
39 lines
849 B
C++
39 lines
849 B
C++
/*
|
|
* Modified by ScyllaDB
|
|
* Copyright (C) 2024-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: (AGPL-3.0-or-later and Apache-2.0)
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "schema/schema_fwd.hh"
|
|
#include <vector>
|
|
|
|
namespace db {
|
|
|
|
namespace system_auth_keyspace {
|
|
enum class version_t: int64_t {
|
|
v1 = 1,
|
|
v2 = 2,
|
|
};
|
|
static constexpr auto NAME = "system_auth_v2";
|
|
// tables
|
|
static constexpr auto ROLES = "roles";
|
|
static constexpr auto ROLE_MEMBERS = "role_members";
|
|
static constexpr auto ROLE_ATTRIBUTES = "role_attributes";
|
|
static constexpr auto ROLE_PERMISSIONS = "role_permissions";
|
|
|
|
|
|
schema_ptr roles();
|
|
schema_ptr role_members();
|
|
schema_ptr role_attributes();
|
|
schema_ptr role_permissions();
|
|
|
|
std::vector<schema_ptr> all_tables();
|
|
}; // namespace system_auth_keyspace
|
|
|
|
} // namespace db
|