30 lines
1.0 KiB
Python
30 lines
1.0 KiB
Python
# Generated by Django 5.2.7 on 2025-11-26 09:10
|
|
|
|
import uuid
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Ticket',
|
|
fields=[
|
|
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
|
('ticket_id', models.CharField(editable=False, max_length=8, unique=True)),
|
|
('name', models.CharField(max_length=100)),
|
|
('email', models.EmailField(max_length=254)),
|
|
('subject', models.CharField(max_length=255)),
|
|
('description', models.TextField()),
|
|
('status', models.CharField(choices=[('Open', 'Open'), ('In Progress', 'In Progress'), ('Closed', 'Closed')], default='Open', max_length=20)),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('updated_at', models.DateTimeField(auto_now=True)),
|
|
],
|
|
),
|
|
]
|