Изменение таблицы Reports и добавление словарей

Обновлен SQL-запрос для создания таблицы `Reports`:
значение по умолчанию для поля `Status` изменено с 'В процессе' на 'ожидает'.
Добавлены статические переменные `userReportSteps` и `userReports` для хранения шагов отчетов пользователей и самих отчетов.
This commit is contained in:
Professional 2025-03-19 19:22:29 +07:00
parent 94d23ff86e
commit 63bc99fee9

View File

@ -652,7 +652,7 @@ class Program
Description TEXT NOT NULL, Description TEXT NOT NULL,
ReporterName TEXT NOT NULL, ReporterName TEXT NOT NULL,
DateCreated DATETIME DEFAULT CURRENT_TIMESTAMP, DateCreated DATETIME DEFAULT CURRENT_TIMESTAMP,
Status TEXT DEFAULT 'В процессе' Status TEXT DEFAULT 'ожидает'
); );
"; ";
await createTableCommand.ExecuteNonQueryAsync(); await createTableCommand.ExecuteNonQueryAsync();
@ -666,6 +666,7 @@ class Program
} }
} }
private static Dictionary<long, int> userReportSteps = new Dictionary<long, int>(); private static Dictionary<long, int> userReportSteps = new Dictionary<long, int>();
private static Dictionary<long, Report> userReports = new Dictionary<long, Report>(); private static Dictionary<long, Report> userReports = new Dictionary<long, Report>();