0001_initial.py
1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-07 01:36
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='File',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=100)),
('user', models.CharField(max_length=20)),
('uploaded_TM', models.DateTimeField(auto_now_add=True)),
('last_view_TM', models.DateTimeField()),
('isFavor', models.BooleanField()),
('bucketPath', models.CharField(max_length=50)),
('fileSize', models.IntegerField()),
('localPath', models.CharField(max_length=100)),
],
),
migrations.CreateModel(
name='Folder',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('dir_name', models.CharField(max_length=30)),
('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='child', to='fileshell.Folder')),
],
),
migrations.AddField(
model_name='file',
name='folder',
field=models.ManyToManyField(blank=True, null=True, related_name='datas', to='fileshell.Folder'),
),
]