IDDRS_API/search_tfidf/migrations/0001_initial.py

94 lines
4.9 KiB
Python
Raw Permalink Normal View History

2023-05-12 11:41:17 +00:00
# Generated by Django 4.1.3 on 2023-04-28 13:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='FilteredResults',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('session_key', models.CharField(blank=True, max_length=17, null=True)),
('uniqueID', models.CharField(blank=True, max_length=200, null=True)),
('session_expiry_date', models.DateField(blank=True, null=True)),
('index', models.IntegerField(blank=True, null=True)),
('level', models.IntegerField(blank=True, null=True)),
('levelName', models.CharField(max_length=200)),
('title', models.CharField(max_length=200)),
('paragraph', models.TextField(blank=True, null=True)),
('color', models.CharField(max_length=10)),
('module', models.CharField(max_length=200)),
('heading1', models.CharField(max_length=200)),
('heading2', models.CharField(max_length=200)),
('heading3', models.CharField(max_length=200)),
('heading4', models.CharField(max_length=200)),
('pageNumber', models.IntegerField(blank=True, null=True)),
('sentence', models.CharField(blank=True, max_length=500, null=True)),
('shall', models.BooleanField(default=False)),
('should', models.BooleanField(default=False)),
('may', models.BooleanField(default=False)),
('must', models.BooleanField(default=False)),
('can', models.BooleanField(default=False)),
],
),
migrations.CreateModel(
name='Level',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('levelNumber', models.IntegerField()),
('levelName', models.CharField(max_length=200)),
('levelColor', models.CharField(default='#000000', max_length=10)),
],
),
migrations.CreateModel(
name='SearchResults',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('session_key', models.CharField(blank=True, max_length=17, null=True)),
('uniqueID', models.CharField(blank=True, max_length=200, null=True)),
('session_expiry_date', models.DateField(blank=True, null=True)),
('score', models.FloatField(blank=True, null=True)),
('index', models.IntegerField(blank=True, null=True)),
('level', models.IntegerField(blank=True, null=True)),
('levelName', models.CharField(max_length=200)),
('title', models.CharField(max_length=200)),
('paragraph', models.TextField(blank=True, null=True)),
('color', models.CharField(max_length=10)),
('module', models.CharField(max_length=200)),
('heading1', models.CharField(max_length=200)),
('heading2', models.CharField(max_length=200)),
('heading3', models.CharField(max_length=200)),
('heading4', models.CharField(max_length=200)),
('pageNumber', models.IntegerField(blank=True, null=True)),
('sentence', models.CharField(blank=True, max_length=500, null=True)),
('shall', models.BooleanField(default=False)),
('should', models.BooleanField(default=False)),
('may', models.BooleanField(default=False)),
('must', models.BooleanField(default=False)),
('can', models.BooleanField(default=False)),
],
),
migrations.CreateModel(
name='Standards',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('standardFile', models.FileField(blank=True, null=True, upload_to='')),
('standardLevel', models.IntegerField(blank=True, null=True)),
('standardTitle', models.CharField(max_length=200)),
('standardNumber', models.CharField(max_length=10)),
('standardPath', models.CharField(blank=True, max_length=200, null=True)),
('revision', models.BooleanField()),
('paragraph', models.TextField(blank=True, null=True)),
('levelID', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='search_tfidf.level')),
],
),
]