You've already forked opc-backend
开发了多角色登录与鉴权接口:实现了普通用户、企业和管理员的登录分流,并支持Token验证。
开发了权限控制接口:实现了通过数据库分配菜单权限节点,控制接口访问安全。 开发了实名认证中心:实现了个人身份证信息与企业营业执照的提交与审核接口。 开发了任务与协作大厅核心业务:实现了任务的发布、接单、状态流转以及专家邀约接口。 配置了全局环境变量与数据库引擎:集成了 PostgreSQL 数据库、Redis 缓存与 MinIO 对象存储。
This commit is contained in:
40
opc_cert/migrations/0001_initial.py
Normal file
40
opc_cert/migrations/0001_initial.py
Normal file
@@ -0,0 +1,40 @@
|
||||
# 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',
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user