khaganat-web/chat/migrations/0001_initial.py
Rodolphe Breard 5e7b176e39 Add a webchat
2019-07-23 15:16:03 +02:00

35 lines
1.2 KiB
Python

# Generated by Django 2.2.3 on 2019-07-23 09:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='LogSource',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=128)),
('slug', models.CharField(max_length=128, unique=True)),
('hidden', models.BooleanField(default=False)),
],
),
migrations.CreateModel(
name='LogEntry',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('hidden', models.BooleanField(default=False)),
('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')),
],
),
]