1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-09-25 22:29:45 +00:00

database_structure => constants

This commit is contained in:
2020-05-26 17:51:11 +02:00
parent cca7f02f8e
commit 175266f397
6 changed files with 21 additions and 16 deletions

17
src/constants.rs Normal file
View File

@@ -0,0 +1,17 @@
//! Project constants
//!
//! This module contains all the hard-coded value that might be used everywhere in the project.
//!
//! @author Pierre Hubert
/// The name of the tables
pub mod database_tables_names {
/// API services tokens table
pub const SERVICES_TABLES: &str = "comunic_api_services_tokens";
/// User access tokens table
pub const USER_ACCESS_TOKENS_TABLE: &str = "comunic_api_users_tokens";
/// User table
pub const USERS_TABLE: &str = "utilisateurs";
}