Миграции
This commit is contained in:
parent
f779589fdd
commit
6fb812600a
28
app/apps/main/migrations/0002_auto_20250410_0828.py
Normal file
28
app/apps/main/migrations/0002_auto_20250410_0828.py
Normal file
@ -0,0 +1,28 @@
|
||||
# Generated by Django 3.2.25 on 2025-04-10 01:28
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('main', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='AspirationUnit',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('mfsb_id', models.IntegerField()),
|
||||
('tag', models.CharField(blank=True, max_length=50)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Аспирационная установка',
|
||||
'verbose_name_plural': 'Аспирационные установки',
|
||||
},
|
||||
),
|
||||
migrations.DeleteModel(
|
||||
name='ShiftReport',
|
||||
),
|
||||
]
|
||||
@ -7,7 +7,7 @@ class ScalesControl(models.Model):
|
||||
db_column='Values', decimal_places=6, max_digits=50, blank=True, null=True
|
||||
)
|
||||
time = models.DateTimeField(db_column='Date', blank=True, null=True)
|
||||
is_checked = models.BooleanField(db_column='Check', default=False)
|
||||
check = models.BooleanField(db_column='Check', default=False)
|
||||
|
||||
class Meta:
|
||||
verbose_name = 'Показание весов'
|
||||
|
||||
29
app/users/migrations/0002_userlogin.py
Normal file
29
app/users/migrations/0002_userlogin.py
Normal file
@ -0,0 +1,29 @@
|
||||
# Generated by Django 3.2.25 on 2025-04-10 01:27
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('users', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='UserLogin',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('login_time', models.DateTimeField(auto_now_add=True)),
|
||||
('logout_time', models.DateTimeField(blank=True, null=True)),
|
||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Вход пользователя',
|
||||
'verbose_name_plural': 'Входы пользователей',
|
||||
},
|
||||
),
|
||||
]
|
||||
Loading…
x
Reference in New Issue
Block a user