51 lines
2.8 KiB
Python
51 lines
2.8 KiB
Python
|
# Generated by Django 5.0.6 on 2024-08-26 11:44
|
||
|
|
||
|
import django.db.models.deletion
|
||
|
from django.conf import settings
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Prizes',
|
||
|
fields=[
|
||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('prize_type', models.CharField(choices=[('CN', 'Coins'), ('AL', 'Acceleration'), ('AC', 'Auto_collection')], max_length=250, verbose_name='Тип приза')),
|
||
|
('time', models.IntegerField(blank=True, null=True, verbose_name='Время награды в днях')),
|
||
|
('coins', models.BigIntegerField(blank=True, null=True, verbose_name='Количество MCDK (Необязательно)')),
|
||
|
('percent', models.IntegerField(blank=True, null=True, verbose_name='Процент (Необязательно)')),
|
||
|
],
|
||
|
options={
|
||
|
'verbose_name': 'Приз',
|
||
|
'verbose_name_plural': 'Призы',
|
||
|
},
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='Farming',
|
||
|
fields=[
|
||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('coins_per_min', models.BigIntegerField(blank=True, default=1, verbose_name='Монет за мин')),
|
||
|
('coins', models.BigIntegerField(blank=True, default=0, verbose_name='Количество MCDK')),
|
||
|
('start_time', models.DateTimeField(blank=True, null=True, verbose_name='Время и дата начала фарминга')),
|
||
|
('percent', models.IntegerField(default=0, verbose_name='Дополнительные проценты фарминга')),
|
||
|
('is_auto_collection_active', models.BooleanField(default=False, verbose_name='Автосбор активен')),
|
||
|
('auto_collection_end_time', models.DateTimeField(blank=True, null=True, verbose_name='Время окончания автосбора')),
|
||
|
('bonus_multiplier', models.FloatField(blank=True, default=1.0, verbose_name='Множитель скорости фарминга')),
|
||
|
('bonus_end_time', models.DateTimeField(blank=True, null=True, verbose_name='Время окончания бонуса')),
|
||
|
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||
|
],
|
||
|
options={
|
||
|
'verbose_name': 'Данные фарминга',
|
||
|
'verbose_name_plural': 'Данные фармингов',
|
||
|
},
|
||
|
),
|
||
|
]
|