File size: 2,069 Bytes
16bfc87 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# Generated by Django 3.2.6 on 2021-08-25 10:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('user_id', models.IntegerField(primary_key=True, serialize=False)),
('username', models.CharField(blank=True, max_length=32, null=True)),
('first_name', models.CharField(max_length=256)),
('last_name', models.CharField(blank=True, max_length=256, null=True)),
('language_code', models.CharField(blank=True, help_text="Telegram client's lang", max_length=8, null=True)),
('deep_link', models.CharField(blank=True, max_length=64, null=True)),
('is_blocked_bot', models.BooleanField(default=False)),
('is_banned', models.BooleanField(default=False)),
('is_admin', models.BooleanField(default=False)),
('is_moderator', models.BooleanField(default=False)),
],
options={
'ordering': ('-created_at',),
'abstract': False,
},
),
migrations.CreateModel(
name='Location',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
('latitude', models.FloatField()),
('longitude', models.FloatField()),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='users.user')),
],
options={
'ordering': ('-created_at',),
'abstract': False,
},
),
]
|