html-over-websockets-with-d.../app/website/migrations/0006_message.py
Andros Fenollosa 33d0a75775 Add chat
2021-11-23 21:41:52 +01:00

28 lines
866 B
Python

# Generated by Django 3.2.9 on 2021-11-23 18:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('website', '0005_auto_20211121_0757'),
]
operations = [
migrations.CreateModel(
name='Message',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('username', models.CharField(default='', max_length=100, verbose_name='Alias')),
('text', models.TextField(max_length=500)),
('created_at', models.DateTimeField(auto_now_add=True)),
],
options={
'verbose_name': 'Message',
'verbose_name_plural': 'Messages',
'ordering': ('-created_at',),
},
),
]