From 4759c0bc71b3a6cb87f3aa4a67f06668a91ecda2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B0=D0=B6=D0=B8=D0=B3=D0=B8=D0=BD=20=D0=91=D0=BE?= =?UTF-8?q?=D0=B3=D0=B4=D0=B0=D0=BD=20=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5?= =?UTF-8?q?=D0=B5=D0=B2=D0=B8=D1=87?= Date: Wed, 21 Dec 2022 18:03:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D0=BA=D0=BE=D0=BD=D1=81=D1=82?= =?UTF-8?q?=D1=80=D1=83=D0=BA=D1=86=D0=B8=D1=8F=20=D0=BF=D0=BE=D0=B4=20?= =?UTF-8?q?=D0=BC=D0=BE=D0=B9=20=D0=BF=D1=80=D0=BE=D0=B5=D0=BA=D1=82=20?= =?UTF-8?q?=D0=B8=D0=BD=D1=84=D1=80=D0=B0=D1=81=D1=82=D1=80=D1=83=D0=BA?= =?UTF-8?q?=D1=82=D1=83=D1=80=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Репозиторий инфраструктуры: https://github.com/zaboal/organization.git. --- readme.md | 2 +- .../organizational_structure.sql | 5 ++-- .../organizational_structure/sample_data.sql | 24 ------------------- .../telegram_users/telegram_users.sql | 5 ---- .../sqlite_pragmas.sql | 0 source/vacancies.sql | 7 ------ 6 files changed, 4 insertions(+), 39 deletions(-) rename source/{organizational_structure => }/organizational_structure.sql (96%) delete mode 100644 source/organizational_structure/sample_data.sql delete mode 100644 source/organizational_structure/telegram_users/telegram_users.sql rename source/{organizational_structure => }/sqlite_pragmas.sql (100%) delete mode 100644 source/vacancies.sql 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