Black_Raven
c5962ec7e8
sys: Added flask-cors
2026-03-22 17:04:09 +03:00
Black_Raven
1e50c9de10
ci: update pipline to run api tests and build docker
2026-03-22 17:04:05 +03:00
Black_Raven
4ee6765b53
sys: Dockerfile
2026-03-22 17:04:05 +03:00
Black_Raven
96a941be36
tests: API tests
2026-03-22 17:04:05 +03:00
Black_Raven
90630d393f
feat(api): added controllers for api
2026-03-22 17:04:05 +03:00
Black_Raven
b9c1a1c018
feat(handlers): Get data from db Methods
...
Added all methods from fronted documentation whitch needs
2026-03-22 16:53:24 +03:00
Black_Raven
0439ccd6d9
fix(models): added working categories and products model
2026-03-22 16:52:42 +03:00
Black_Raven
df876012ba
feat(pipeline): Added pipline
2026-03-17 13:09:44 +03:00
Black_Raven
269f9dd9e1
Merge pull request ' #1 dev/models' ( #6 ) from dev/models into main
...
Reviewed-on: https://git.rustprogersteam.ru/PVHProject/PVHBackend/pulls/6
2026-03-17 09:33:47 +00:00
Black_Raven
1d98f78439
feat(mail): added functional for send mail
2026-03-17 12:30:38 +03:00
Black_Raven
17791ef83f
sys: add price
2026-03-17 12:24:47 +03:00
Black_Raven
e3110c3897
feat(modefied)
2026-03-17 12:08:19 +03:00
Black_Raven
d705f2f9d3
feat(ENV): Added Shell env
2025-11-29 16:09:48 +03:00
Black_Raven
bd19100eb4
feat(Model): Added new table model
2025-11-29 16:05:27 +03:00
Black_Raven
fdcc935a18
fix(Model): Restrict and rename CParams model
2025-11-29 16:04:33 +03:00
Black_Raven
94afaae692
fix(MOdel): Restructorize model to db modules
2025-11-29 16:04:01 +03:00
Black_Raven
4632512adb
fix(Models): Restructorize Category models to new structure
2025-11-29 16:03:07 +03:00
Black_Raven
24c12d704c
fixup! fix(DB): Added data to new db structure
2025-11-29 16:02:41 +03:00
Black_Raven
04789e7e8f
fixup! feat(DB): Added utils file for better initializing db
2025-11-29 16:02:30 +03:00
Black_Raven
332f952394
fixup! fix(DB): Restructurization of db
2025-11-29 16:02:17 +03:00
Black_Raven
f2f7295077
fix(Models): delete useless models
2025-11-29 15:40:25 +03:00
Kirill
e3f0c4973a
feat(DB): Added utils file for better initializing db
2025-11-29 14:35:16 +03:00
Kirill
2747214a74
fix(DB): Added data to new db structure
2025-11-29 14:35:16 +03:00
Kirill
5d41a6b856
fix(DB): Restructurization of db
2025-11-29 14:35:16 +03:00
Black_Raven
dc8156e05c
fixup! fix(Models): Category model
2025-11-23 22:42:54 +03:00
Black_Raven
9e7b92c839
fixup! feat(Models): Added C_Params model
2025-11-23 22:42:42 +03:00
Black_Raven
57eebae265
fixup! fix(DataBase): Recreate Initializing of structure
2025-11-23 22:42:33 +03:00
Black_Raven
ce5f84beba
fixup! fix(DataBase): Fix Data Base struct
2025-11-23 22:42:23 +03:00
Black_Raven
87392869b1
Merge pull request 'models #1 ' ( #4 ) from models into main
...
Reviewed-on: https://git.rustprogersteam.ru/PVHProject/PVHBackend/pulls/4
2025-11-23 18:54:40 +00:00
Black_Raven
1739fb35b5
feat(Model): Added Category Val model
...
It needs for serching by proop parametrs
It consists of:
value Id
value
2025-11-23 21:50:55 +03:00
Black_Raven
0a7a3b7454
feat(Models): Add Product PAram strict
...
This is module for auto generating of product discription
It consists of:
Param id
Param name
Param val
2025-11-23 21:47:58 +03:00
Black_Raven
91a05c7df7
feat(Models): Added C_Params model
...
This is model for sorted products on site
It consists of:
Category Name
Category id
Catygory value id
2025-11-23 21:45:50 +03:00
Black_Raven
cd6bebc269
fix(Models): Product model
2025-11-23 21:45:19 +03:00
Black_Raven
220e9af004
fix(Models): Category model
2025-11-23 21:44:57 +03:00
Black_Raven
6863cf86fa
fix(DataBase): Recreate Initializing of structure
2025-11-23 21:44:00 +03:00
Black_Raven
f82c692a2b
fix(DataBase): Fix Data Base struct
...
-- Таблица продуктов
CREATE TABLE Product (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
image_path TEXT
);
-- Таблица значений параметров
CREATE TABLE Val (
id INTEGER PRIMARY KEY AUTOINCREMENT,
val TEXT NOT NULL
);
-- Таблица параметров продуктов
CREATE TABLE Param (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
val TEXT NOT NULL
);
-- Таблица параметров категорий
CREATE TABLE CParams (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
val_id INTEGER,
FOREIGN KEY (val_id) REFERENCES Val (id)
);
-- Таблица категорий
CREATE TABLE Category (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
prod_id INTEGER,
image_path TEXT,
c_params_id INTEGER,
FOREIGN KEY (prod_id) REFERENCES Product (id),
FOREIGN KEY (c_params_id) REFERENCES CParams (id)
);
-- Таблица связи продуктов и параметров (многие-ко-многим)
CREATE TABLE Product_Param (
product_id INTEGER,
param_id INTEGER,
PRIMARY KEY (product_id, param_id),
FOREIGN KEY (product_id) REFERENCES Product (id),
FOREIGN KEY (param_id) REFERENCES Param (id)
);
2025-11-23 21:41:03 +03:00
Kirill
1313d4a17b
feat: Add Models
2025-11-14 14:41:39 +03:00
Kirill
7515116712
fixup! feat(db/InitializeDBData.py): Initialize db data
2025-11-14 14:10:20 +03:00
Kirill
991e512390
fix(app.py): Add includes
2025-11-13 23:01:36 +03:00
Kirill
e62328fda2
feat(db/InitializeDBData.py): Initialize db data
...
This code is initializing test data for db
2025-11-13 23:00:57 +03:00
Kirill
a6a267fbcc
feat(db/InitializeDB.py): Initialize db
...
Initialized test db strusture for project
-Type is used for classificate prodycts by type
-Products is products performance
2025-11-13 23:00:57 +03:00
Kirill
09eef7b206
feat(app.py): Initialize based web-app logic
2025-11-13 22:51:00 +03:00
Kirill
959baeb935
feat(./shell.nix; ./dependencies.txt): Added env files
2025-11-13 22:49:11 +03:00
Kirill
d8c50a3e94
first commit
2025-11-13 22:47:11 +03:00