You've already forked opc-backend
31 lines
1.1 KiB
Python
31 lines
1.1 KiB
Python
|
|
# Generated by Django 4.2.30 on 2026-04-27 16:36
|
||
|
|
|
||
|
|
from django.db import migrations, models
|
||
|
|
import uuid
|
||
|
|
|
||
|
|
|
||
|
|
class Migration(migrations.Migration):
|
||
|
|
|
||
|
|
dependencies = [
|
||
|
|
('system', '0003_aimodel'),
|
||
|
|
]
|
||
|
|
|
||
|
|
operations = [
|
||
|
|
migrations.CreateModel(
|
||
|
|
name='Skill',
|
||
|
|
fields=[
|
||
|
|
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||
|
|
('name', models.CharField(max_length=64, unique=True)),
|
||
|
|
('category', models.CharField(blank=True, help_text='分类: 技术/设计/内容/数据 等', max_length=64, null=True)),
|
||
|
|
('sort_order', models.IntegerField(default=0, help_text='排序权重, 越小越靠前')),
|
||
|
|
('is_active', models.BooleanField(default=True)),
|
||
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||
|
|
('updated_at', models.DateTimeField(auto_now=True)),
|
||
|
|
],
|
||
|
|
options={
|
||
|
|
'db_table': 'skills',
|
||
|
|
'ordering': ['sort_order', 'name'],
|
||
|
|
},
|
||
|
|
),
|
||
|
|
]
|