Initial commit from monorepo
This commit is contained in:
11
create_accounts.py
Normal file
11
create_accounts.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from billing_app.models import Account
|
||||
from django.db import transaction
|
||||
|
||||
print("Creating sample accounts...")
|
||||
|
||||
with transaction.atomic():
|
||||
for i in range(5):
|
||||
account = Account.objects.create()
|
||||
print(f"Created account: {account.uuid}")
|
||||
|
||||
print("Sample accounts created successfully.")
|
||||
Reference in New Issue
Block a user