Added GTIN product storage and remote service integration

This commit is contained in:
2022-04-13 15:42:09 +02:00
parent f1dab1c0a1
commit 4da41fe1cd
8 changed files with 117 additions and 6 deletions

View 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')),
],
),
]