Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
migs_atienza_music
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
Migs Atienza
migs_atienza_music
Commits
2192fcd5
Commit
2192fcd5
authored
Feb 21, 2023
by
Migs Atienza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated Models + README.txt
parent
a208afbd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
README.txt
README.txt
+3
-3
db.sqlite3
migs_atienza_music/db.sqlite3
+0
-0
models.cpython-39.pyc
..._atienza_music/homepage/__pycache__/models.cpython-39.pyc
+0
-0
models.py
migs_atienza_music/homepage/models.py
+6
-0
No files found.
README.txt
View file @
2192fcd5
...
...
@@ -2,9 +2,9 @@ Miguel Luis Antonio Atienza
210523
CSCI 40 - F
Lab
1: Song Library
February
13
, 2023
Lab
2: Song Library v2
February
21
, 2023
This lab was truthfully made by me, and only me, Migs Atienza
<sgd> Miguel Luis Antonio Atienza, February 13, 2023
\ No newline at end of file
<sgd> Miguel Luis Antonio Atienza, February 21, 2023
\ No newline at end of file
migs_atienza_music/db.sqlite3
View file @
2192fcd5
No preview for this file type
migs_atienza_music/homepage/__pycache__/models.cpython-39.pyc
View file @
2192fcd5
No preview for this file type
migs_atienza_music/homepage/models.py
View file @
2192fcd5
...
...
@@ -4,6 +4,8 @@ from django.db import models
class
Artist
(
models
.
Model
):
artist_name
=
models
.
CharField
(
max_length
=
50
)
monthly_listeners
=
models
.
IntegerField
()
birth_name
=
models
.
CharField
(
max_length
=
50
)
bio
=
models
.
CharField
(
max_length
=
700
)
class
Album
(
models
.
Model
):
...
...
@@ -11,6 +13,8 @@ class Album(models.Model):
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
)
description
=
models
.
CharField
(
max_length
=
1000
)
release_date
=
models
.
DateField
()
label
=
models
.
CharField
(
max_length
=
50
)
song_count
=
models
.
IntegerField
()
class
Song
(
models
.
Model
):
...
...
@@ -18,4 +22,6 @@ class Song(models.Model):
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
)
album
=
models
.
ForeignKey
(
Album
,
on_delete
=
models
.
CASCADE
)
song_length
=
models
.
TimeField
()
music_video
=
models
.
BooleanField
()
lyrics
=
models
.
CharField
(
max_length
=
2500
)
# Create your models here.
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