add: add type income crud and model
This commit is contained in:
30
core/apps/finance/migrations/0006_typeincome.py
Normal file
30
core/apps/finance/migrations/0006_typeincome.py
Normal file
@@ -0,0 +1,30 @@
|
||||
# Generated by Django 5.2.4 on 2025-09-08 15:35
|
||||
|
||||
import uuid
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('finance', '0005_rename_expence_balance_cashtransaction_expence_balance_usd_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='TypeIncome',
|
||||
fields=[
|
||||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
('name', models.CharField(max_length=200)),
|
||||
('category', models.CharField(choices=[('OTHERS', 'boshqalar'), ('CONTANT_INCOME', 'doimiy daromad')], max_length=20)),
|
||||
('activity', models.CharField(choices=[('FINANCIAL', 'moliyaviy'), ('CAPITAL', 'sarmoya')], max_length=20)),
|
||||
('comment', models.CharField(max_length=200)),
|
||||
('status', models.BooleanField(default=True)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Daromad turlari',
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user