add new app
This commit is contained in:
46
core/apps/projects/migrations/0001_initial.py
Normal file
46
core/apps/projects/migrations/0001_initial.py
Normal file
@@ -0,0 +1,46 @@
|
||||
# Generated by Django 5.2.4 on 2025-08-01 14:55
|
||||
|
||||
import django.db.models.deletion
|
||||
import uuid
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Project',
|
||||
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)),
|
||||
('location', models.CharField(max_length=200)),
|
||||
('start_date', models.DateField()),
|
||||
('end_date', models.DateField()),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Loyiha',
|
||||
'verbose_name_plural': 'Loyihalar',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='ProjectDepartment',
|
||||
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)),
|
||||
('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='project_departments', to='projects.project')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': "Loyiha Bo'limi",
|
||||
'verbose_name_plural': "Loyiha Bo'limlari",
|
||||
},
|
||||
),
|
||||
]
|
||||
0
core/apps/projects/migrations/__init__.py
Normal file
0
core/apps/projects/migrations/__init__.py
Normal file
Reference in New Issue
Block a user