You've already forked opc-backend
41 lines
1.7 KiB
Python
41 lines
1.7 KiB
Python
|
|
# Generated by Django 4.2.30 on 2026-04-25 09:46
|
||
|
|
|
||
|
|
from django.db import migrations, models
|
||
|
|
import uuid
|
||
|
|
|
||
|
|
|
||
|
|
class Migration(migrations.Migration):
|
||
|
|
|
||
|
|
initial = True
|
||
|
|
|
||
|
|
dependencies = [
|
||
|
|
]
|
||
|
|
|
||
|
|
operations = [
|
||
|
|
migrations.CreateModel(
|
||
|
|
name='OpcCertification',
|
||
|
|
fields=[
|
||
|
|
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||
|
|
('real_name', models.CharField(max_length=64)),
|
||
|
|
('id_card', models.TextField(blank=True, null=True)),
|
||
|
|
('skills', models.JSONField(default=list)),
|
||
|
|
('experience', models.TextField(blank=True, null=True)),
|
||
|
|
('resume_url', models.CharField(blank=True, max_length=512, null=True)),
|
||
|
|
('attachments', models.JSONField(default=list)),
|
||
|
|
('status', models.CharField(choices=[('PENDING', '待审核'), ('APPROVED', '已通过'), ('REJECTED', '已驳回')], default='PENDING', max_length=16)),
|
||
|
|
('reject_reason', models.TextField(blank=True, null=True)),
|
||
|
|
('reviewed_at', models.DateTimeField(blank=True, null=True)),
|
||
|
|
('rating', models.SmallIntegerField(blank=True, null=True)),
|
||
|
|
('rating_tags', models.JSONField(default=list)),
|
||
|
|
('rating_note', models.TextField(blank=True, null=True)),
|
||
|
|
('rated_at', models.DateTimeField(blank=True, null=True)),
|
||
|
|
('version', models.SmallIntegerField(default=1)),
|
||
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||
|
|
('updated_at', models.DateTimeField(auto_now=True)),
|
||
|
|
],
|
||
|
|
options={
|
||
|
|
'db_table': 'opc_certifications',
|
||
|
|
},
|
||
|
|
),
|
||
|
|
]
|