diff --git a/tests/__init__.py b/src/modules/standart/__init__.py similarity index 100% rename from tests/__init__.py rename to src/modules/standart/__init__.py diff --git a/src/core/database/__init__.py b/src/modules/standart/database/__init__.py similarity index 100% rename from src/core/database/__init__.py rename to src/modules/standart/database/__init__.py diff --git a/src/core/database/api.py b/src/modules/standart/database/api.py similarity index 93% rename from src/core/database/api.py rename to src/modules/standart/database/api.py index 1ba63e3..3b8ea66 100644 --- a/src/core/database/api.py +++ b/src/modules/standart/database/api.py @@ -1,6 +1,6 @@ -from src.core.database.models.chats import Chats -from src.core.database.models.messages import Messages -from src.core.database.models.users import Users +from src.modules.standart.database.models.chats import Chats +from src.modules.standart.database.models.messages import Messages +from src.modules.standart.database.models.users import Users import peewee as pw diff --git a/src/modules/standart/database/info.json b/src/modules/standart/database/info.json new file mode 100644 index 0000000..db9c2c7 --- /dev/null +++ b/src/modules/standart/database/info.json @@ -0,0 +1,6 @@ +{ + "name": "Database", + "description": "Модуль для работы с БД", + "author": "OCAB Team", + "version": "1.0" +} \ No newline at end of file diff --git a/src/core/database/models/__init__.py b/src/modules/standart/database/models/__init__.py similarity index 100% rename from src/core/database/models/__init__.py rename to src/modules/standart/database/models/__init__.py diff --git a/src/core/database/models/base.py b/src/modules/standart/database/models/base.py similarity index 100% rename from src/core/database/models/base.py rename to src/modules/standart/database/models/base.py diff --git a/src/core/database/models/chats.py b/src/modules/standart/database/models/chats.py similarity index 100% rename from src/core/database/models/chats.py rename to src/modules/standart/database/models/chats.py diff --git a/src/core/database/models/messages.py b/src/modules/standart/database/models/messages.py similarity index 100% rename from src/core/database/models/messages.py rename to src/modules/standart/database/models/messages.py diff --git a/src/core/database/models/users.py b/src/modules/standart/database/models/users.py similarity index 100% rename from src/core/database/models/users.py rename to src/modules/standart/database/models/users.py diff --git a/tests/database/file b/src/modules/standart/database/tests/database/file similarity index 100% rename from tests/database/file rename to src/modules/standart/database/tests/database/file diff --git a/tests/test_db.py b/src/modules/standart/database/tests/test_db.py similarity index 95% rename from tests/test_db.py rename to src/modules/standart/database/tests/test_db.py index 1969dbb..cc7da4b 100644 --- a/tests/test_db.py +++ b/src/modules/standart/database/tests/test_db.py @@ -1,7 +1,7 @@ import unittest -from src.core.database.api import * -from src.core.database.models.base import database +from src.modules.standart.database.api import * +from src.modules.standart.database.models.base import database create_tables(database)