Files
insta/namecreate/migrations/0001_initial.py
Beyhan Oğur 2be3a313ad first commit
2026-04-26 22:26:46 +03:00

41 lines
1.9 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Generated by Django 6.0.3 on 2026-03-27 19:47
import django.utils.timezone
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='TrainingJob',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('task_id', models.CharField(help_text='Celery task ID', max_length=255, unique=True)),
('status', models.CharField(choices=[('pending', 'Beklemede'), ('running', 'Eğitiliyor'), ('completed', 'Tamamlandı'), ('failed', 'Başarısız')], default='pending', max_length=20)),
('created_at', models.DateTimeField(auto_now_add=True)),
('started_at', models.DateTimeField(blank=True, null=True)),
('completed_at', models.DateTimeField(blank=True, null=True)),
('model_type', models.CharField(default='RandomForest', max_length=100)),
('model_version', models.DateTimeField(default=django.utils.timezone.now, help_text='Model versiyonu (timestamp)')),
('model_path', models.FilePathField(blank=True, null=True)),
('accuracy', models.FloatField(blank=True, null=True)),
('precision', models.FloatField(blank=True, null=True)),
('recall', models.FloatField(blank=True, null=True)),
('f1_score', models.FloatField(blank=True, null=True)),
('error_message', models.TextField(blank=True, null=True)),
('go_service_notified', models.BooleanField(default=False)),
],
options={
'verbose_name': 'Eğitim Görevi',
'verbose_name_plural': 'Eğitim Görevleri',
'ordering': ['-created_at'],
},
),
]