1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-26 15:29:21 +00:00
comunicapiv3/src/constants.rs

40 lines
1.3 KiB
Rust

//! 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";
/// Friends table
pub const FRIENDS_TABLE: &str = "amis";
/// Custom emojis table
pub const EMOJIS_TABLE: &str = "comunic_custom_emojis";
/// Likes table
pub const LIKES_TABLE: &str = "aime";
/// Groups list table
pub const GROUPS_LIST_TABLE: &str = "comunic_groups";
/// Conversations tables
pub const CONV_LIST_TABLE: &str = "comunic_conversations_list";
pub const CONV_USERS_TABLE: &str = "comunic_conversations_users";
pub const CONV_MESSAGES_TABLE: &str = "comunic_conversations_messages";
}
/// The account image to show for user who do not have any
pub const DEFAULT_ACCOUNT_IMAGE: &str = "avatars/0Reverse.png";
/// The account image to show for users who are not allowed to access other users account images
pub const ERROR_ACCOUNT_IMAGE: &str = "avatars/0Red.png";