Initial commit (Clean history)
This commit is contained in:
36
app/migrations/0048_collaborator.py
Normal file
36
app/migrations/0048_collaborator.py
Normal file
@@ -0,0 +1,36 @@
|
||||
# Generated by Django 5.1.7 on 2025-05-23 07:28
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('app', '0047_job_apply_code'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Collaborator',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('code', models.CharField(db_index=True, max_length=20, unique=True)),
|
||||
('fullname', models.CharField(db_index=True, max_length=50)),
|
||||
('phone', models.CharField(db_index=True, max_length=20, null=True)),
|
||||
('email', models.CharField(max_length=50)),
|
||||
('address', models.CharField(max_length=300)),
|
||||
('dob', models.DateField()),
|
||||
('legal_code', models.CharField(max_length=30)),
|
||||
('issue_date', models.DateField()),
|
||||
('issue_place', models.TextField()),
|
||||
('create_time', models.DateTimeField(auto_now_add=True, null=True)),
|
||||
('update_time', models.DateTimeField(null=True)),
|
||||
('legal_type', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.legal_type')),
|
||||
('sex', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.legal_type')),
|
||||
],
|
||||
options={
|
||||
'db_table': 'collaborator',
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user