29
app/human_resources/migrations/0001_initial.py
Normal file
29
app/human_resources/migrations/0001_initial.py
Normal file
@ -0,0 +1,29 @@
|
||||
# Generated by Django 5.1.8 on 2025-04-15 05:25
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('access', '0005_entity_person_entityhistory_entitynotes_role_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Employee',
|
||||
fields=[
|
||||
('contact_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='access.contact')),
|
||||
('employee_number', models.IntegerField(help_text='Employees identification number.', unique=True, verbose_name='Employee Number')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Employee',
|
||||
'verbose_name_plural': 'Employees',
|
||||
'ordering': ['email'],
|
||||
},
|
||||
bases=('access.contact',),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user