created models
This commit is contained in:
parent
80cb5e2901
commit
7cc321c5f3
62
hr_module/migrations/0001_initial.py
Normal file
62
hr_module/migrations/0001_initial.py
Normal file
@ -0,0 +1,62 @@
|
||||
# Generated by Django 3.1.3 on 2020-11-23 19:33
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Employee',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('first_name', models.CharField(max_length=200)),
|
||||
('last_name', models.CharField(max_length=200)),
|
||||
('department', models.CharField(max_length=200)),
|
||||
('manager_id', models.IntegerField()),
|
||||
('time_model_id', models.IntegerField()),
|
||||
('manager_flag', models.BooleanField()),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Plan',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('person_id', models.IntegerField(unique=True)),
|
||||
('date', models.DateField()),
|
||||
('begin_time', models.TimeField()),
|
||||
('end_time', models.TimeField()),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='TimeLog',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('person_id', models.IntegerField(unique=True)),
|
||||
('date', models.DateField()),
|
||||
('begin_time', models.TimeField()),
|
||||
('end_time', models.TimeField()),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='TimeModel',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('time_model_id', models.IntegerField()),
|
||||
('weekly_hours', models.DecimalField(decimal_places=2, max_digits=2)),
|
||||
('weekly_days', models.IntegerField()),
|
||||
('mon', models.BooleanField()),
|
||||
('tue', models.BooleanField()),
|
||||
('wed', models.BooleanField()),
|
||||
('thu', models.BooleanField()),
|
||||
('fri', models.BooleanField()),
|
||||
('sat', models.BooleanField()),
|
||||
('sun', models.BooleanField()),
|
||||
],
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue
Block a user