This commit is contained in:
2026-04-09 19:28:41 +03:00
commit 9fa723bb4c
43 changed files with 2804 additions and 0 deletions

15
scripts/test_models.py Normal file
View File

@@ -0,0 +1,15 @@
# test_models.py
from app.database import SessionLocal
from app.models.form import Form, Field, FormField
db = SessionLocal()
# Создаем тестовую форму
form = Form(name="Test Form", description="Test")
db.add(form)
db.commit()
print(f"Created form with id: {form.id}")
print("Database is working correctly!")
db.close()