McDuck/stacking/migrations/0001_initial.py

36 lines
1.5 KiB
Python
Raw Permalink Normal View History

2024-08-29 09:21:58 +00:00
# Generated by Django 5.0.6 on 2024-08-26 11:46
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('users', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='UserStake',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('amount', models.DecimalField(decimal_places=4, max_digits=30, verbose_name='Сумма')),
('percent', models.IntegerField(blank=True, null=True, verbose_name='Процент бонусов')),
('is_active', models.BooleanField(default=True, verbose_name='Автивен')),
('start_date', models.DateTimeField(auto_now=True, verbose_name='Время начала')),
('duration', models.IntegerField(blank=True, null=True, verbose_name='Длительность в днях')),
('balance', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='users.balance')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name': 'Пользовательский Stake',
'verbose_name_plural': 'Пользовательские Stake',
},
),
]