Initial commit
This commit is contained in:
28
idescriptor/migrations/0001_initial.py
Normal file
28
idescriptor/migrations/0001_initial.py
Normal file
@@ -0,0 +1,28 @@
|
||||
# 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)),
|
||||
],
|
||||
),
|
||||
]
|
18
idescriptor/migrations/0002_alter_image_alt_text.py
Normal file
18
idescriptor/migrations/0002_alter_image_alt_text.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.1.2 on 2024-10-21 18:30
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('idescriptor', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='image',
|
||||
name='alt_text',
|
||||
field=models.TextField(blank=True, help_text='Describe the image', null=True),
|
||||
),
|
||||
]
|
0
idescriptor/migrations/__init__.py
Normal file
0
idescriptor/migrations/__init__.py
Normal file
Reference in New Issue
Block a user