mirror of
https://github.com/evgen-app/hackbot.git
synced 2025-11-11 13:05:17 +03:00
34 lines
1.0 KiB
Python
34 lines
1.0 KiB
Python
# Generated by Django 4.0.3 on 2022-03-18 15:07
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Chat',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.TextField()),
|
|
('start_message', models.TextField(blank=True)),
|
|
('api_key', models.TextField()),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='Message',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('text', models.TextField()),
|
|
('author', models.TextField()),
|
|
('chat', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='chat_models.chat')),
|
|
],
|
|
),
|
|
]
|