36 lines
1.3 KiB
Python
36 lines
1.3 KiB
Python
# Generated by Django 5.2.7 on 2025-12-08 02:20
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Club',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=100)),
|
|
('description', models.TextField()),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='BookRecommendation',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('book_title', models.CharField(max_length=200)),
|
|
('author', models.CharField(max_length=100)),
|
|
('reason', models.TextField()),
|
|
('status', models.CharField(choices=[('pending', 'Pending'), ('approved', 'Approved'), ('rejected', 'Rejected')], default='pending', max_length=10)),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('club', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.club')),
|
|
],
|
|
),
|
|
]
|