-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path0001_initial.py
More file actions
34 lines (28 loc) · 1.28 KB
/
0001_initial.py
File metadata and controls
34 lines (28 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Generated by Django 5.2.5 on 2025-11-24 15:52
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='CarouselItem',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('carousel', models.CharField(max_length=255)),
('image', models.ImageField(upload_to='carousel')),
('alt_text', models.CharField(blank=True, max_length=255)),
('caption', models.CharField(blank=True, max_length=255)),
('link_url', models.URLField(blank=True)),
('is_active', models.BooleanField(default=True)),
('starts_at', models.DateTimeField(blank=True, null=True)),
('ends_at', models.DateTimeField(blank=True, null=True)),
('sort_order', models.PositiveIntegerField(db_index=True, default=0)),
('created', models.DateTimeField(auto_now_add=True)),
('updated', models.DateTimeField(auto_now=True)),
],
options={
'ordering': ['sort_order', 'created'],
},
),
]