diff options
author | clarkzjw <[email protected]> | 2023-02-21 16:46:11 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-21 16:46:11 -0800 |
commit | 22fb6a357f1b6b91f04a180604e2f992280ee661 (patch) | |
tree | 0ed80d12ac41475138077891ffea0bb78fe392cb /bot/migrations/0001_initial.py | |
parent | 0ce8037dcb01745edc9930b09e72bf7ea4dfcf4e (diff) | |
download | swarm2fediverse-feature/django.tar.gz |
add django app templatefeature/django
Diffstat (limited to 'bot/migrations/0001_initial.py')
-rw-r--r-- | bot/migrations/0001_initial.py | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/bot/migrations/0001_initial.py b/bot/migrations/0001_initial.py new file mode 100644 index 0000000..6b4f210 --- /dev/null +++ b/bot/migrations/0001_initial.py | |||
@@ -0,0 +1,44 @@ | |||
1 | # Generated by Django 4.1.7 on 2023-02-22 00:44 | ||
2 | |||
3 | import django.contrib.auth.models | ||
4 | from django.db import migrations, models | ||
5 | import django.utils.timezone | ||
6 | |||
7 | |||
8 | class Migration(migrations.Migration): | ||
9 | |||
10 | initial = True | ||
11 | |||
12 | dependencies = [ | ||
13 | ('auth', '0012_alter_user_first_name_max_length'), | ||
14 | ] | ||
15 | |||
16 | operations = [ | ||
17 | migrations.CreateModel( | ||
18 | name='User', | ||
19 | fields=[ | ||
20 | ('password', models.CharField(max_length=128, verbose_name='password')), | ||
21 | ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), | ||
22 | ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), | ||
23 | ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')), | ||
24 | ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), | ||
25 | ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), | ||
26 | ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')), | ||
27 | ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), | ||
28 | ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), | ||
29 | ('name', models.CharField(blank=True, max_length=50)), | ||
30 | ('telegram_id', models.PositiveBigIntegerField(primary_key=True, serialize=False, unique=True)), | ||
31 | ('username', models.CharField(max_length=32)), | ||
32 | ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.group', verbose_name='groups')), | ||
33 | ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.permission', verbose_name='user permissions')), | ||
34 | ], | ||
35 | options={ | ||
36 | 'verbose_name': 'user', | ||
37 | 'verbose_name_plural': 'users', | ||
38 | 'abstract': False, | ||
39 | }, | ||
40 | managers=[ | ||
41 | ('objects', django.contrib.auth.models.UserManager()), | ||
42 | ], | ||
43 | ), | ||
44 | ] | ||