v002 migrations
This commit is contained in:
36
001.BACKEND/kupci/migrations/0001_initial.py
Normal file
36
001.BACKEND/kupci/migrations/0001_initial.py
Normal file
@@ -0,0 +1,36 @@
|
||||
# Generated by Django 6.0.5 on 2026-05-20 20:03
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Kupac',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('naziv', models.CharField(help_text='Ime i prezime ili puni naziv tvrtke', max_length=255)),
|
||||
('oib', models.CharField(blank=True, max_length=11, null=True, unique=True, verbose_name='OIB')),
|
||||
('email', models.EmailField(blank=True, max_length=254)),
|
||||
('telefon', models.CharField(blank=True, max_length=50)),
|
||||
('adresa', models.CharField(blank=True, max_length=255)),
|
||||
('grad', models.CharField(blank=True, max_length=100)),
|
||||
('postanski_broj', models.CharField(blank=True, max_length=10)),
|
||||
('tip', models.CharField(choices=[('pravno', 'Pravna osoba (Tvrtka)'), ('fizicko', 'Fizička osoba')], default='pravno', max_length=10)),
|
||||
('napomena', models.TextField(blank=True, help_text='Interni podaci o kupcu')),
|
||||
('datum_kreiranja', models.DateTimeField(auto_now_add=True)),
|
||||
('aktivno', models.BooleanField(default=True)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Kupac',
|
||||
'verbose_name_plural': 'Kupci',
|
||||
'ordering': ['naziv'],
|
||||
},
|
||||
),
|
||||
]
|
||||
0
001.BACKEND/kupci/migrations/__init__.py
Normal file
0
001.BACKEND/kupci/migrations/__init__.py
Normal file
Reference in New Issue
Block a user