Fix OAuth page
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
# Generated by Django 6.1.1 on 2026-10-18 15:34
|
||||
|
||||
import django.core.validators
|
||||
import django.db.models.deletion
|
||||
import django.utils.timezone
|
||||
import uuid
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='DreamEntry',
|
||||
fields=[
|
||||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||||
('wake_up_date', models.DateField(db_index=True)),
|
||||
('dreamed_at', models.DateTimeField(blank=True, null=True)),
|
||||
('title', models.CharField(max_length=160)),
|
||||
('narrative', models.TextField(max_length=20000)),
|
||||
('interpretation', models.TextField(blank=True, max_length=4000)),
|
||||
('tags', models.JSONField(blank=True, default=list)),
|
||||
('emotions', models.JSONField(blank=True, default=list)),
|
||||
('vividness', models.PositiveSmallIntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(10)])),
|
||||
('is_nightmare', models.BooleanField(default=False)),
|
||||
('after_waking_notes', models.TextField(blank=True, max_length=4000)),
|
||||
('created_at', models.DateTimeField(default=django.utils.timezone.now)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='dream_entries', to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
options={
|
||||
'ordering': ('-wake_up_date', '-created_at'),
|
||||
'indexes': [models.Index(fields=['user', '-wake_up_date'], name='dreams_drea_user_id_f28241_idx')],
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user