fixy costco stuff
This commit is contained in:
27
server/pokemans_app/migrations/0002_costcoproduct.py
Normal file
27
server/pokemans_app/migrations/0002_costcoproduct.py
Normal file
@@ -0,0 +1,27 @@
|
||||
# Generated by Django 5.0.2 on 2024-03-06 00:59
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('pokemans_app', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='CostcoProduct',
|
||||
fields=[
|
||||
('id', models.AutoField(primary_key=True, serialize=False)),
|
||||
('sku', models.CharField(max_length=255)),
|
||||
('name', models.CharField(max_length=255)),
|
||||
('price', models.CharField(max_length=255)),
|
||||
('img_url', models.CharField(max_length=555)),
|
||||
('product_link', models.CharField(max_length=555)),
|
||||
('active', models.BooleanField(default=True)),
|
||||
('created_at', models.DateTimeField(auto_now=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
],
|
||||
),
|
||||
]
|
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0.2 on 2024-03-06 02:26
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('pokemans_app', '0002_costcoproduct'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='costcoproduct',
|
||||
name='sku',
|
||||
field=models.CharField(max_length=255, unique=True),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user