35 lines
1.3 KiB
Python
35 lines
1.3 KiB
Python
|
# Generated by Django 4.1.1 on 2023-11-01 14:43
|
||
|
|
||
|
from django.conf import settings
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
('furaffinity', '0001_initial'),
|
||
|
('auth', '0012_alter_user_first_name_max_length'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='UserProfile',
|
||
|
fields=[
|
||
|
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)),
|
||
|
('show_mature', models.CharField(choices=[('H', 'Hide'), ('B', 'Blur'), ('S', 'Show')], default='H', max_length=2)),
|
||
|
],
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='SeenPost',
|
||
|
fields=[
|
||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('timestamp', models.DateTimeField(auto_now_add=True)),
|
||
|
('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='furaffinity.fa_submission')),
|
||
|
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='user.userprofile')),
|
||
|
],
|
||
|
),
|
||
|
]
|