mirror of
https://github.com/evgen-app/hackbot.git
synced 2024-12-04 22:03:46 +03:00
33 lines
1.0 KiB
Python
33 lines
1.0 KiB
Python
# Generated by Django 4.0.3 on 2022-03-19 12:17
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
('chat_models', '0002_message_time_created'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='User',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('username', models.TextField()),
|
|
('joined', models.DateTimeField()),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='UserChat',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('chat', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='chat_models.chat')),
|
|
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='users.user')),
|
|
],
|
|
),
|
|
]
|