imageBotDjango/idescriptor/migrations/0001_initial.py

29 lines
1.1 KiB
Python
Raw Permalink Normal View History

2024-10-21 18:32:47 +00:00
# Generated by Django 5.1.2 on 2024-10-21 11:41
import uuid
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Image',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(blank=True, help_text='Image title that will be posted', max_length=200, null=True)),
('alt_text', models.CharField(blank=True, help_text='Describe the image', max_length=2000, null=True)),
('file_path', models.CharField(max_length=1500)),
('image', models.ImageField(upload_to='')),
('file_hash', models.CharField(blank=True, max_length=64, null=True, unique=True, verbose_name='File hash')),
('last_posted', models.DateTimeField(blank=True, null=True)),
('number_times_posted', models.IntegerField(default=0)),
],
),
]