33 lines
1.1 KiB
Python
33 lines
1.1 KiB
Python
# Generated manually for exchange refactoring
|
|
|
|
from django.db import migrations, models
|
|
import uuid
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Request',
|
|
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)),
|
|
('product_uuid', models.CharField(max_length=100)),
|
|
('quantity', models.DecimalField(decimal_places=2, max_digits=10)),
|
|
('source_location_uuid', models.CharField(max_length=100)),
|
|
('user_id', models.CharField(max_length=255)),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('updated_at', models.DateTimeField(auto_now=True)),
|
|
],
|
|
options={
|
|
'db_table': 'calculations',
|
|
'ordering': ['-created_at'],
|
|
},
|
|
),
|
|
]
|