mirror of
https://github.com/more-tech4-magnum-opus/backend.git
synced 2024-11-25 04:33:44 +03:00
31 lines
1.1 KiB
Python
31 lines
1.1 KiB
Python
# Generated by Django 4.0.8 on 2022-10-08 06:31
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Product',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=200)),
|
|
('description', models.TextField()),
|
|
('image', models.ImageField(upload_to='uploads/')),
|
|
('image_cropped', models.ImageField(blank=True, upload_to='cropped/')),
|
|
('nft', models.CharField(blank=True, max_length=500)),
|
|
('price', models.IntegerField()),
|
|
('creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='products', to=settings.AUTH_USER_MODEL)),
|
|
],
|
|
),
|
|
]
|