Initial commit from monorepo
This commit is contained in:
32
suppliers/migrations/0001_initial.py
Normal file
32
suppliers/migrations/0001_initial.py
Normal file
@@ -0,0 +1,32 @@
|
||||
from django.db import migrations, models
|
||||
import uuid
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = []
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Supplier',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('uuid', models.CharField(default=uuid.uuid4, max_length=100, unique=True)),
|
||||
('team_uuid', models.CharField(max_length=100, unique=True)),
|
||||
('name', models.CharField(max_length=255)),
|
||||
('description', models.TextField(blank=True, default='')),
|
||||
('country', models.CharField(blank=True, default='', max_length=100)),
|
||||
('logo_url', models.URLField(blank=True, default='')),
|
||||
('is_verified', models.BooleanField(default=False)),
|
||||
('is_active', models.BooleanField(default=True)),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
],
|
||||
options={
|
||||
'db_table': 'suppliers',
|
||||
'ordering': ['name'],
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user