blob: 1170ff7cb0b47d199fdf427dcff260995e013a85 [file] [log] [blame]
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# Generated by Django 3.2.1 on 2021-08-06 04:31
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Algorithm',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('classifier', models.CharField(max_length=128)),
('description', models.TextField(blank=True, null=True)),
('version', models.CharField(max_length=128)),
('status', models.CharField(max_length=128)),
('created_at', models.DateTimeField(auto_now_add=True)),
('created_by', models.CharField(max_length=128)),
],
options={
'ordering': ['created_at'],
},
),
migrations.CreateModel(
name='Dataset',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=128, unique=True)),
('region', models.CharField(max_length=128, unique=True)),
],
),
migrations.CreateModel(
name='PredictionRequest',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('input', models.JSONField()),
('response', models.JSONField()),
('prediction', models.CharField(max_length=128)),
('feedback', models.CharField(blank=True, max_length=128, null=True)),
('notes', models.TextField(blank=True, null=True)),
('created_at', models.DateTimeField(auto_now_add=True)),
('created_by', models.CharField(max_length=128)),
('algorithm', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.DO_NOTHING, to='api.algorithm')),
],
options={
'ordering': ['created_at'],
},
),
migrations.AddField(
model_name='algorithm',
name='dataset',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='api.dataset', to_field='name'),
),
]