Showing
2 changed files
with
19 additions
and
0 deletions
1 | +# Generated by Django 3.0.6 on 2020-06-10 13:29 | ||
2 | + | ||
3 | +from django.db import migrations, models | ||
4 | + | ||
5 | + | ||
6 | +class Migration(migrations.Migration): | ||
7 | + | ||
8 | + dependencies = [ | ||
9 | + ('api', '0007_auto_20200610_1217'), | ||
10 | + ] | ||
11 | + | ||
12 | + operations = [ | ||
13 | + migrations.AddField( | ||
14 | + model_name='item', | ||
15 | + name='file_type', | ||
16 | + field=models.CharField(max_length=100, null=True), | ||
17 | + ), | ||
18 | + ] |
... | @@ -5,6 +5,7 @@ class Item(models.Model): | ... | @@ -5,6 +5,7 @@ class Item(models.Model): |
5 | item_id = models.AutoField(primary_key = True) | 5 | item_id = models.AutoField(primary_key = True) |
6 | is_folder = models.BooleanField(default = False) | 6 | is_folder = models.BooleanField(default = False) |
7 | name = models.CharField(max_length = 50) | 7 | name = models.CharField(max_length = 50) |
8 | + file_type = models.CharField(max_length=100, null=True) # signed_url 생성을 위해 file type 세팅 | ||
8 | path = models.TextField() | 9 | path = models.TextField() |
9 | #parent = models.ForeignKey('Item', on_delete=models.CASCADE, null=True) #related_name | 10 | #parent = models.ForeignKey('Item', on_delete=models.CASCADE, null=True) #related_name |
10 | parent = models.IntegerField() | 11 | parent = models.IntegerField() | ... | ... |
-
Please register or login to post a comment