diff --git a/readme.md b/readme.md index 37bf10a..9f37cb4 100644 --- a/readme.md +++ b/readme.md @@ -1 +1 @@ -# SQL-схема организационных баз данных [«Студии Зажигина»](https://site.zaboal.ru) \ No newline at end of file +# SQL-схемы организационных баз данных \ No newline at end of file diff --git a/source/organizational_structure/organizational_structure.sql b/source/organizational_structure.sql similarity index 96% rename from source/organizational_structure/organizational_structure.sql rename to source/organizational_structure.sql index 4ebd5d1..bf93d2f 100644 --- a/source/organizational_structure/organizational_structure.sql +++ b/source/organizational_structure.sql @@ -1,7 +1,8 @@ -- SQL Схема организационной структуры /* Создал Зажигин Богдан Алексеевич под СУБД - SQLite версии 3.32.3. В основном, идентификатор - таблиц — rowid. */ + SQLite версии 3.32.3. + + В основном, идентификатор таблиц — rowid. */ diff --git a/source/organizational_structure/sample_data.sql b/source/organizational_structure/sample_data.sql deleted file mode 100644 index 2987839..0000000 --- a/source/organizational_structure/sample_data.sql +++ /dev/null @@ -1,24 +0,0 @@ -INSERT INTO communication_channels VALUES -(1, "tg://join?invite=EBIdIqMZb3lhNWYy"); -INSERT INTO communication_channels VALUES -(2, "tg://join?invite=I3jgOBd5vYg4Zjhi"); - -INSERT INTO projects VALUES -(1, "Портал проектов", "https://site.zaboal.ru/", 1); -INSERT INTO projects VALUES -(2, "Сервис аутсорсинга администрирования сайтов", "https://site.aas.zaboal.ru", 2); -INSERT INTO projects VALUES -(3, "Поощрительная рассылка", "https://site.club.zaboal.ru", NULL); - -INSERT INTO divisions VALUES -(1, "Проектное бюро", 1, 2, 1); - -INSERT INTO people VALUES -(1, "Зажигин Богдан Алексеевич", "+7 992 195-51-27", "za.boal@vk.com", NULL, NULL, 15012007, 0, "59.831453, 30.327681"); -INSERT INTO people VALUES -(2, "Хисуми", NULL, "hisumimegu.one", NULL, NULL, NULL, NULL); - -INSERT INTO employment_cycles VALUES -(1, 1, 1, 2149501121004, 21102022, NULL, "zaboal@zaboal.ru"); -INSERT INTO employment_cycles VALUES -(2, 2, 1, 4006782252204, 21102022, NULL, "hisumi@zaboal.ru"); \ No newline at end of file diff --git a/source/organizational_structure/telegram_users/telegram_users.sql b/source/organizational_structure/telegram_users/telegram_users.sql deleted file mode 100644 index befbcc4..0000000 --- a/source/organizational_structure/telegram_users/telegram_users.sql +++ /dev/null @@ -1,5 +0,0 @@ -CREATE TABLE users ( - user_per_rowid INT NOT NULL - REFERENCES people (rowid), - user_id INT NOT NULL -); \ No newline at end of file diff --git a/source/organizational_structure/sqlite_pragmas.sql b/source/sqlite_pragmas.sql similarity index 100% rename from source/organizational_structure/sqlite_pragmas.sql rename to source/sqlite_pragmas.sql diff --git a/source/vacancies.sql b/source/vacancies.sql deleted file mode 100644 index 4fe317d..0000000 --- a/source/vacancies.sql +++ /dev/null @@ -1,7 +0,0 @@ -CREATE TABLE vacancies ( - vac_div_rowid INT NOT NULL -- Подразделение открывшее вакансию - REFERENCES divisions (rowid), - vac_okpdtr VARCHAR(18) NOT NULL, -- Код информационного блока ОКПДТР вакансии - vac_per_rowid INT -- Человек, проходящий собеседование по ваканасии - REFERENCES people (rowid) -); \ No newline at end of file