2020-05-26 15:51:11 +00:00
|
|
|
//! 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";
|
2020-05-26 16:25:33 +00:00
|
|
|
|
|
|
|
/// Friends table
|
|
|
|
pub const FRIENDS_TABLE: &str = "amis";
|
2020-05-26 17:45:38 +00:00
|
|
|
|
|
|
|
/// Custom emojis table
|
|
|
|
pub const EMOJIS_TABLE: &str = "comunic_custom_emojis";
|
2020-06-01 08:17:32 +00:00
|
|
|
|
|
|
|
/// Likes table
|
|
|
|
pub const LIKES_TABLE: &str = "aime";
|
2020-06-03 11:28:28 +00:00
|
|
|
|
|
|
|
/// Groups list table
|
|
|
|
pub const GROUPS_LIST_TABLE: &str = "comunic_groups";
|
2020-06-04 11:36:57 +00:00
|
|
|
|
2020-06-24 07:08:31 +00:00
|
|
|
/// Groups members table
|
|
|
|
pub const GROUPS_MEMBERS_TABLE: &str = "comunic_groups_members";
|
|
|
|
|
2020-06-04 11:36:57 +00:00
|
|
|
/// 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";
|
2020-07-02 16:19:04 +00:00
|
|
|
|
|
|
|
/// Posts table
|
|
|
|
pub const POSTS_TABLE: &str = "texte";
|
2020-07-03 14:41:14 +00:00
|
|
|
|
|
|
|
/// Movies table
|
|
|
|
pub const MOVIES_TABLE: &str = "galerie_video";
|
2020-05-26 16:02:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/// 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
|
2020-06-20 08:31:58 +00:00
|
|
|
pub const ERROR_ACCOUNT_IMAGE: &str = "avatars/0Red.png";
|
|
|
|
|
2020-06-26 08:53:05 +00:00
|
|
|
/// The path where groups logos should be stored
|
|
|
|
pub const PATH_GROUPS_LOGOS: &str = "groups_logo";
|
|
|
|
|
2020-06-25 06:16:20 +00:00
|
|
|
/// The group logo to use when no custom logo have been uploaded
|
|
|
|
pub const DEFAULT_GROUP_LOGO: &str = "groups_logo/default.png";
|
|
|
|
|
2020-06-20 08:31:58 +00:00
|
|
|
/// Maximum requests size (50 Mo)
|
2020-06-20 08:47:06 +00:00
|
|
|
pub const MAX_REQUEST_SIZE: usize = 50000000;
|