Added GTIN product storage and remote service integration
This commit is contained in:
26
asset/migrations/0003_gtinproduct.py
Normal file
26
asset/migrations/0003_gtinproduct.py
Normal file
@@ -0,0 +1,26 @@
|
||||
# Generated by Django 4.0.3 on 2022-04-13 12:08
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('asset', '0002_auto_20220310_1620'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='GtinProduct',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('gtin', models.CharField(max_length=40, unique=True)),
|
||||
('api_request', models.CharField(max_length=250)),
|
||||
('api_response', models.CharField(max_length=4096)),
|
||||
('name', models.CharField(blank=True, max_length=200)),
|
||||
('brand', models.CharField(blank=True, max_length=40)),
|
||||
('created_ts', models.DateTimeField(auto_now_add=True, verbose_name='datetime created')),
|
||||
('changed_ts', models.DateTimeField(auto_now=True, verbose_name='datetime updated')),
|
||||
],
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user