feat(human_resources): Migration for Employee

ref: #722 #684
This commit is contained in:
2025-04-15 15:21:08 +09:30
parent 6b4bd4db35
commit c1614b1182

View 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',),
),
]