Spaces:
Sleeping
Sleeping
File size: 1,885 Bytes
e50f22e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | # Generated by Django 5.2.3 on 2025-09-17 17:28
import django.db.models.deletion
import webapp.models
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='PublicDataset',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=160)),
('description', models.TextField(blank=True)),
('file', models.FileField(upload_to=webapp.models.dataset_upload_path)),
('rows', models.IntegerField(blank=True, null=True)),
('cols', models.IntegerField(blank=True, null=True)),
('is_active', models.BooleanField(default=True)),
('created_at', models.DateTimeField(auto_now_add=True)),
],
),
migrations.CreateModel(
name='SavedModel',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=120)),
('file', models.FileField(upload_to=webapp.models.model_upload_path)),
('public', models.BooleanField(default=False)),
('test_auc', models.FloatField(blank=True, null=True)),
('test_f1', models.FloatField(blank=True, null=True)),
('created_at', models.DateTimeField(auto_now_add=True)),
('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='saved_models', to=settings.AUTH_USER_MODEL)),
],
),
]
|