# Generated by Django 3.2.12 on 2024-07-26 09:14

from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):

    dependencies = [
        ('bi', '0004_dataset_test_param'),
    ]

    operations = [
        migrations.CreateModel(
            name='DatasetRecord',
            fields=[
                ('id', models.CharField(editable=False, help_text='主键ID', max_length=20, primary_key=True, serialize=False, verbose_name='主键ID')),
                ('create_time', models.DateTimeField(default=django.utils.timezone.now, help_text='创建时间', verbose_name='创建时间')),
                ('update_time', models.DateTimeField(auto_now=True, help_text='修改时间', verbose_name='修改时间')),
                ('is_deleted', models.BooleanField(default=False, help_text='删除标记', verbose_name='删除标记')),
                ('timex', models.DateTimeField(auto_now_add=True, verbose_name='执行时间')),
                ('full_sql', models.TextField(blank=True, null=True, verbose_name='完整SQL')),
                ('result', models.JSONField(blank=True, default=dict, verbose_name='执行返回')),
                ('dataset', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='bi.dataset', verbose_name='数据集')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
