Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GrabGrub
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Matthew Dominic M. Dizon
GrabGrub
Commits
dbe5d5cf
Commit
dbe5d5cf
authored
May 27, 2021
by
Matthew Dizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated models
parent
09ac6580
Pipeline
#1931
canceled with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
0002_auto_20210527_1147.py
GrabGrub/Kiosk/migrations/0002_auto_20210527_1147.py
+23
-0
models.py
GrabGrub/Kiosk/models.py
+2
-2
No files found.
GrabGrub/Kiosk/migrations/0002_auto_20210527_1147.py
0 → 100644
View file @
dbe5d5cf
# Generated by Django 3.0.5 on 2021-05-27 03:47
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'Kiosk'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'customer'
,
name
=
'name'
,
field
=
models
.
CharField
(
max_length
=
250
,
unique
=
True
),
),
migrations
.
AlterField
(
model_name
=
'food'
,
name
=
'name'
,
field
=
models
.
CharField
(
max_length
=
250
,
unique
=
True
),
),
]
GrabGrub/Kiosk/models.py
View file @
dbe5d5cf
...
...
@@ -15,7 +15,7 @@ class Account(models.Model):
return
f
"Username: {self.username}, Password: {self.password}"
class
Food
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
250
)
name
=
models
.
CharField
(
max_length
=
250
,
unique
=
True
)
description
=
models
.
CharField
(
max_length
=
250
)
price
=
models
.
FloatField
(
max_length
=
250
)
created_at
=
models
.
DateTimeField
(
auto_now_add
=
True
)
...
...
@@ -33,7 +33,7 @@ class Food(models.Model):
return
f
"{self.pk}: {self.name} - {self.price}, {self.description} created at: {self.created_at}"
class
Customer
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
250
)
name
=
models
.
CharField
(
max_length
=
250
,
unique
=
True
)
address
=
models
.
CharField
(
max_length
=
250
)
city
=
models
.
CharField
(
max_length
=
250
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment