Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
alvin_andrada_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
Alvin Joshua Andrada
alvin_andrada_music
Commits
42d15ae8
Commit
42d15ae8
authored
Feb 20, 2023
by
Alvin Joshua Andrada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified models
parent
11980b83
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
85 additions
and
1 deletion
+85
-1
db.sqlite3
alvin_andrada_music/db.sqlite3
+0
-0
models.cpython-39.pyc
..._andrada_music/homepage/__pycache__/models.cpython-39.pyc
+0
-0
0002_album_label_album_song_count_artist_bio_and_more.py
.../0002_album_label_album_song_count_artist_bio_and_more.py
+42
-0
0003_alter_album_label.py
...drada_music/homepage/migrations/0003_alter_album_label.py
+18
-0
0004_song_music_video.py
...ndrada_music/homepage/migrations/0004_song_music_video.py
+19
-0
0002_album_label_album_song_count_artist_bio_and_more.cpython-39.pyc
...label_album_song_count_artist_bio_and_more.cpython-39.pyc
+0
-0
0003_alter_album_label.cpython-39.pyc
...rations/__pycache__/0003_alter_album_label.cpython-39.pyc
+0
-0
0004_song_music_video.cpython-39.pyc
...grations/__pycache__/0004_song_music_video.cpython-39.pyc
+0
-0
models.py
alvin_andrada_music/homepage/models.py
+6
-1
No files found.
alvin_andrada_music/db.sqlite3
View file @
42d15ae8
No preview for this file type
alvin_andrada_music/homepage/__pycache__/models.cpython-39.pyc
View file @
42d15ae8
No preview for this file type
alvin_andrada_music/homepage/migrations/0002_album_label_album_song_count_artist_bio_and_more.py
0 → 100644
View file @
42d15ae8
# Generated by Django 4.1.6 on 2023-02-20 15:49
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'homepage'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'album'
,
name
=
'label'
,
field
=
models
.
CharField
(
default
=
'label'
,
max_length
=
100
),
),
migrations
.
AddField
(
model_name
=
'album'
,
name
=
'song_count'
,
field
=
models
.
IntegerField
(
default
=
1
),
preserve_default
=
False
,
),
migrations
.
AddField
(
model_name
=
'artist'
,
name
=
'bio'
,
field
=
models
.
CharField
(
default
=
'Bio'
,
max_length
=
700
),
preserve_default
=
False
,
),
migrations
.
AddField
(
model_name
=
'artist'
,
name
=
'birth_name'
,
field
=
models
.
CharField
(
default
=
'birth name'
,
max_length
=
100
),
preserve_default
=
False
,
),
migrations
.
AddField
(
model_name
=
'song'
,
name
=
'lyrics'
,
field
=
models
.
CharField
(
default
=
'lyrics'
,
max_length
=
3000
),
preserve_default
=
False
,
),
]
alvin_andrada_music/homepage/migrations/0003_alter_album_label.py
0 → 100644
View file @
42d15ae8
# Generated by Django 4.1.6 on 2023-02-20 15:49
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'homepage'
,
'0002_album_label_album_song_count_artist_bio_and_more'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'album'
,
name
=
'label'
,
field
=
models
.
CharField
(
max_length
=
100
),
),
]
alvin_andrada_music/homepage/migrations/0004_song_music_video.py
0 → 100644
View file @
42d15ae8
# Generated by Django 4.1.6 on 2023-02-20 15:50
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'homepage'
,
'0003_alter_album_label'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'song'
,
name
=
'music_video'
,
field
=
models
.
BooleanField
(
default
=
False
),
preserve_default
=
False
,
),
]
alvin_andrada_music/homepage/migrations/__pycache__/0002_album_label_album_song_count_artist_bio_and_more.cpython-39.pyc
0 → 100644
View file @
42d15ae8
File added
alvin_andrada_music/homepage/migrations/__pycache__/0003_alter_album_label.cpython-39.pyc
0 → 100644
View file @
42d15ae8
File added
alvin_andrada_music/homepage/migrations/__pycache__/0004_song_music_video.cpython-39.pyc
0 → 100644
View file @
42d15ae8
File added
alvin_andrada_music/homepage/models.py
View file @
42d15ae8
...
@@ -3,13 +3,16 @@ from django.db import models
...
@@ -3,13 +3,16 @@ from django.db import models
class
Artist
(
models
.
Model
):
class
Artist
(
models
.
Model
):
artist_name
=
models
.
CharField
(
max_length
=
100
)
artist_name
=
models
.
CharField
(
max_length
=
100
)
monthly_listeners
=
models
.
IntegerField
()
monthly_listeners
=
models
.
IntegerField
()
birth_name
=
models
.
CharField
(
max_length
=
100
)
bio
=
models
.
CharField
(
max_length
=
700
)
class
Album
(
models
.
Model
):
class
Album
(
models
.
Model
):
album_name
=
models
.
CharField
(
max_length
=
50
)
album_name
=
models
.
CharField
(
max_length
=
50
)
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
)
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
)
description
=
models
.
IntegerField
()
description
=
models
.
IntegerField
()
release_date
=
models
.
CharField
(
max_length
=
50
)
release_date
=
models
.
CharField
(
max_length
=
50
)
label
=
models
.
CharField
(
max_length
=
100
)
song_count
=
models
.
IntegerField
()
class
Song
(
models
.
Model
):
class
Song
(
models
.
Model
):
...
@@ -17,4 +20,6 @@ class Song(models.Model):
...
@@ -17,4 +20,6 @@ class Song(models.Model):
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
)
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
)
album
=
models
.
ForeignKey
(
Album
,
on_delete
=
models
.
CASCADE
)
album
=
models
.
ForeignKey
(
Album
,
on_delete
=
models
.
CASCADE
)
song_length
=
models
.
IntegerField
()
song_length
=
models
.
IntegerField
()
music_video
=
models
.
BooleanField
()
lyrics
=
models
.
CharField
(
max_length
=
3000
)
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