0001_initial.py 2.24 KB
# Generated by Django 3.0.6 on 2020-06-11 14:54

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Item',
            fields=[
                ('item_id', models.AutoField(primary_key=True, serialize=False)),
                ('is_folder', models.BooleanField(default=False)),
                ('name', models.CharField(max_length=50)),
                ('file_type', models.CharField(max_length=100, null=True)),
                ('path', models.TextField()),
                ('parent', models.IntegerField()),
                ('user_id', models.IntegerField()),
                ('size', models.IntegerField()),
                ('is_deleted', models.BooleanField(default=False)),
                ('created_time', models.DateTimeField(auto_now=True)),
                ('updated_time', models.DateTimeField(null=True)),
                ('status', models.BooleanField()),
            ],
            options={
                'ordering': ['item_id'],
            },
        ),
        migrations.CreateModel(
            name='SharedItem',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('item_id', models.IntegerField()),
                ('expires', models.DateTimeField()),
                ('password', models.CharField(max_length=20)),
                ('created_time', models.DateTimeField(auto_now=True)),
            ],
            options={
                'ordering': ['item_id'],
            },
        ),
        migrations.CreateModel(
            name='User',
            fields=[
                ('int_id', models.AutoField(primary_key=True, serialize=False)),
                ('user_id', models.CharField(max_length=50)),
                ('name', models.CharField(max_length=50)),
                ('password', models.CharField(max_length=20)),
                ('total_size', models.IntegerField()),
                ('current_size', models.IntegerField()),
                ('created_time', models.DateTimeField(auto_now=True)),
            ],
            options={
                'ordering': ['int_id'],
            },
        ),
    ]