mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 17:57:47 +03:00
0.8.0
Реализованы все требуемые эндпоинты schedule. Улучшена документация.
This commit is contained in:
@@ -35,12 +35,27 @@ pub enum UserRole {
|
||||
#[diesel(table_name = crate::database::schema::users)]
|
||||
#[diesel(treat_none_as_null = true)]
|
||||
pub struct User {
|
||||
/// UUID аккаунта
|
||||
pub id: String,
|
||||
|
||||
/// Имя пользователя
|
||||
pub username: String,
|
||||
|
||||
/// BCrypt хеш пароля
|
||||
pub password: String,
|
||||
|
||||
/// Идентификатор привязанного аккаунта VK
|
||||
pub vk_id: Option<i32>,
|
||||
|
||||
/// JWT токен доступа
|
||||
pub access_token: String,
|
||||
|
||||
/// Группа
|
||||
pub group: String,
|
||||
|
||||
/// Роль
|
||||
pub role: UserRole,
|
||||
|
||||
/// Версия установленного приложения Polytechnic+
|
||||
pub version: String,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user