Import and Export CSV
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
# Generated by Django 5.1.3 on 2025-02-07 13:44
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Risk',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('risk_id', models.IntegerField(unique=True)),
|
||||
('category', models.CharField(max_length=255)),
|
||||
('risk_name', models.CharField(max_length=255)),
|
||||
('primary_impact', models.TextField()),
|
||||
('secondary_impact', models.TextField()),
|
||||
('tretiary_impact', models.TextField()),
|
||||
('detection_difficulty', models.CharField(max_length=255)),
|
||||
('recovery_complexity', models.CharField(max_length=255)),
|
||||
('businnes_impact_severity', models.CharField(max_length=255)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Document',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('modified_at', models.DateTimeField(auto_now=True)),
|
||||
('organization', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='documents', to='core.organization')),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='DocumentSegment',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('segment_type', models.CharField(choices=[('title', 'Title'), ('subtitle', 'Subtitle'), ('h1', 'Header 1'), ('h2', 'Header 2'), ('h3', 'Header 3'), ('body', 'Body Text'), ('quote', 'Quote')], max_length=20)),
|
||||
('content', models.TextField()),
|
||||
('order', models.PositiveIntegerField()),
|
||||
('modified_at', models.DateTimeField(auto_now=True)),
|
||||
('document', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='segments', to='core.document')),
|
||||
],
|
||||
options={
|
||||
'ordering': ['order'],
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user