Переименование GUID на UUID

This commit is contained in:
Антон
2025-08-30 08:31:03 +03:00
parent 5c226faf8a
commit c1019b0d5e
7 changed files with 50 additions and 50 deletions
+12 -12
View File
@@ -53,7 +53,7 @@
```
{
"user": {
"guid": "51351bb1-7563-479d-a8e9-201d0ff934c2"
"uuid": "51351bb1-7563-479d-a8e9-201d0ff934c2"
"login": "ivan_89"
}
}
@@ -65,7 +65,7 @@
* `400 BAD_REQUEST` — сервер не смог десереализовать JSON
### 10. Используемые сущности ДБ
* users(guid(PK), login(unique), hashed_password)
* users(uuid(PK), login(unique), hashed_password)
## UseCase №2
### 1.Название: Авторизация пользователя
@@ -126,7 +126,7 @@ null
```
### 10. Используемые сущности ДБ
* users(guid(PK), login(unique), hashed_password)
* users(uuid(PK), login(unique), hashed_password)
## UseCase №3
### 1.Название: Переход на главную страницу
@@ -160,7 +160,7 @@ null
{
diaries: [
{
"guid": "e89b6a0c-4b0f-4722-a410-1e0c1864bf8a",
"uuid": "e89b6a0c-4b0f-4722-a410-1e0c1864bf8a",
"time": "10.08.2025",
"mania_level": 1,
"depression_level": 2,
@@ -170,12 +170,12 @@ null
"dream_level": 6,
"anxiety_level": 7,
"treatment_scheme": {
"guid": "bf6d1555-39e9-4d73-8928-4763627f4dd5",
"uuid": "bf6d1555-39e9-4d73-8928-4763627f4dd5",
"treatment_name": "Bipolar I Scheme",
"instructions": "Контроль лития в крови раз в 2 месяца. Анализ крови через вену."
"medications": [
{
"guid": "8af2dfa9-3add-413c-9a0e-ff605088f1d5",
"uuid": "8af2dfa9-3add-413c-9a0e-ff605088f1d5",
"name": "Litii Carbonate",
"dose": 1800,
"unit": "mg",
@@ -198,12 +198,12 @@ null
{
"treatment_schemes": [
{
"guid": "248313cb-a75e-4331-8379-d3f2fc36b68d"
"uuid": "248313cb-a75e-4331-8379-d3f2fc36b68d"
"treatment_name": "Bipolar I Scheme Urgent",
"instructions": "Схема для бытрого и жесткого купирования психозов. Аминазин пить каждый день.",
"medications": [
{
"guid": "eda5a5f7-167a-44b9-900d-c5c6acfc249b",
"uuid": "eda5a5f7-167a-44b9-900d-c5c6acfc249b",
"name": "Aminazin",
"dose": 100,
"unit": "mg",
@@ -220,7 +220,7 @@ null
* `500 DATA_LOAD_FAILED` — ошибка при загрузке данных (B1)
### 10. Используемые сущности ДБ
* diaries(guid(PK), time , mania_level , depression_level , mood_level , activity_level , appetite_level , dream_level , anxiety_level, user_treatment_schemes_guid)
* diaries(uuid(PK), time , mania_level , depression_level , mood_level , activity_level , appetite_level , dream_level , anxiety_level, user_treatment_schemes_uuid)
* mania(level(PK))
* depressions(level(PK))
* moods(level(PK))
@@ -228,6 +228,6 @@ null
* appetites(level(PK))
* dreams(level(PK))
* anxiety(level(PK))
* treatment_schemes(user_treatment_schemes_guid(PK), medication_guid(PK))
* user_treatment_schemes(guid(PK), user_guid, treatment_name, instructions)
* medications(guid(PK), name, dose, unit, is_urgent)
* treatment_schemes(user_treatment_schemes_uuid(PK), medication_uuid(PK))
* user_treatment_schemes(uuid(PK), user_uuid, treatment_name, instructions)
* medications(uuid(PK), name, dose, unit, is_urgent)