init commit

This commit is contained in:
prod-tech
2024-11-17 02:31:42 +03:00
commit cf933c770c
217 changed files with 19340 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import sqlmodel
from app.core.config import config
from app.utils.factories import UserFactory
engine = sqlmodel.create_engine(config.DATABASE_URL)
def fill_with_sample_data():
users = [
{'id': 0, 'username': 'petr'},
{'id': 1, 'username': 'aleksandr'},
{'id': 2, 'username': 'seva'},
{'id': 3, 'username': 'maksim'},
{'id': 4, 'username': 'timur'},
{'id': 5, 'username': 'roman'},
]
UserFactory.bulk_new_users(users)
events = []