Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-CloudComputing
/
C_Team_KhuDrive
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
권주희
2020-06-10 22:30:07 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
bb18bd85200c89086e3556f010f9b54560fd25d8
bb18bd85
2 parents
3a45841c
8f630a3b
Merge branch 'feature/item_api' into 'develop'
add model column See merge request
!6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
backend/api/migrations/0008_item_file_type.py
backend/api/models.py
backend/api/migrations/0008_item_file_type.py
0 → 100644
View file @
bb18bd8
# Generated by Django 3.0.6 on 2020-06-10 13:29
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'api'
,
'0007_auto_20200610_1217'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'item'
,
name
=
'file_type'
,
field
=
models
.
CharField
(
max_length
=
100
,
null
=
True
),
),
]
backend/api/models.py
View file @
bb18bd8
...
...
@@ -5,6 +5,7 @@ class Item(models.Model):
item_id
=
models
.
AutoField
(
primary_key
=
True
)
is_folder
=
models
.
BooleanField
(
default
=
False
)
name
=
models
.
CharField
(
max_length
=
50
)
file_type
=
models
.
CharField
(
max_length
=
100
,
null
=
True
)
# signed_url 생성을 위해 file type 세팅
path
=
models
.
TextField
()
#parent = models.ForeignKey('Item', on_delete=models.CASCADE, null=True) #related_name
parent
=
models
.
IntegerField
()
...
...
Please
register
or
login
to post a comment