khaganat-web/chat/migrations/0001_initial.py

36 lines
1.2 KiB
Python
Raw Normal View History

2019-07-23 13:16:03 +00:00
# Generated by Django 2.2.3 on 2019-07-23 09:50
2018-01-27 17:58:36 +00:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
2019-07-23 13:16:03 +00:00
name='LogSource',
2018-01-27 17:58:36 +00:00
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
2019-07-23 13:16:03 +00:00
('name', models.CharField(max_length=128)),
('slug', models.CharField(max_length=128, unique=True)),
2018-01-27 17:58:36 +00:00
('hidden', models.BooleanField(default=False)),
],
),
migrations.CreateModel(
2019-07-23 13:16:03 +00:00
name='LogEntry',
2018-01-27 17:58:36 +00:00
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('hidden', models.BooleanField(default=False)),
2019-07-23 13:16:03 +00:00
('created', models.DateTimeField()),
('nick', models.CharField(max_length=128)),
('content', models.CharField(max_length=2048)),
('source', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='chat.LogSource')),
2018-01-27 17:58:36 +00:00
],
),
]