# Generated by Django 5.2.11 on 2026-02-24 18:40

import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Projekts',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nosaukums', models.CharField(max_length=200)),
                ('apraksts', models.TextField(blank=True)),
                ('adrese', models.CharField(blank=True, max_length=255)),
                ('statuss', models.CharField(choices=[('JAUNS', 'Jauns'), ('DARBA', 'Darbā'), ('PABEIGTS', 'Pabeigts'), ('APTURETS', 'Apturēts')], default='JAUNS', max_length=20)),
                ('izveidots', models.DateTimeField(auto_now_add=True)),
                ('atjaunots', models.DateTimeField(auto_now=True)),
                ('klients', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='projekti', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Projekts',
                'verbose_name_plural': 'Projekti',
            },
        ),
    ]
