mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-09-25 22:29:45 +00:00
database_structure => constants
This commit is contained in:
17
src/constants.rs
Normal file
17
src/constants.rs
Normal 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";
|
||||
}
|
Reference in New Issue
Block a user