You've already forked opc-backend
31 lines
1.0 KiB
Python
31 lines
1.0 KiB
Python
|
|
# Generated by Django 4.2.30 on 2026-04-25 13:10
|
||
|
|
|
||
|
|
from django.db import migrations, models
|
||
|
|
import uuid
|
||
|
|
|
||
|
|
|
||
|
|
class Migration(migrations.Migration):
|
||
|
|
|
||
|
|
dependencies = [
|
||
|
|
('system', '0002_initial'),
|
||
|
|
]
|
||
|
|
|
||
|
|
operations = [
|
||
|
|
migrations.CreateModel(
|
||
|
|
name='AiModel',
|
||
|
|
fields=[
|
||
|
|
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||
|
|
('name', models.CharField(max_length=128)),
|
||
|
|
('provider', models.CharField(max_length=128)),
|
||
|
|
('description', models.TextField(blank=True, null=True)),
|
||
|
|
('icon', models.CharField(blank=True, max_length=64, null=True)),
|
||
|
|
('price_per_token', models.DecimalField(decimal_places=6, default=0, max_digits=10)),
|
||
|
|
('is_active', models.BooleanField(default=True)),
|
||
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||
|
|
],
|
||
|
|
options={
|
||
|
|
'db_table': 'ai_models',
|
||
|
|
},
|
||
|
|
),
|
||
|
|
]
|