- Implemented user authentication with JWT tokens - Added user and profile models with OneToOne relationship - Created service layer for business logic separation - Implemented DRF serializers and views - Added comprehensive test suite with model-bakery factories - Fixed ipdb/pdbpp dependency conflicts with custom test runner - Configured development and production environments - Added deployment configurations for Apache, systemd, and Docker
18 lines
839 B
SQL
18 lines
839 B
SQL
-- Инициализационный SQL файл для PostgreSQL
|
|
-- Создает необходимые расширения и базовые настройки
|
|
|
|
-- Создание расширений
|
|
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
|
|
CREATE EXTENSION IF NOT EXISTS "pg_trgm";
|
|
|
|
-- Создание пользователей (если нужно)
|
|
-- CREATE USER project_user WITH PASSWORD 'project_password';
|
|
-- GRANT ALL PRIVILEGES ON DATABASE project_dev TO project_user;
|
|
|
|
-- Настройки для производительности
|
|
ALTER SYSTEM SET shared_buffers = '256MB';
|
|
ALTER SYSTEM SET effective_cache_size = '1GB';
|
|
ALTER SYSTEM SET maintenance_work_mem = '64MB';
|
|
ALTER SYSTEM SET checkpoint_completion_target = 0.9;
|
|
ALTER SYSTEM SET wal_buffers = '16MB';
|
|
ALTER SYSTEM SET default_statistics_target = 100; |