|
|
|
@ -18,6 +18,8 @@ class Song(db.Model): |
|
|
|
author = db.Column(db.String(100), nullable=False) |
|
|
|
album_id = db.Column(db.Integer, db.ForeignKey('album.id'), nullable=False) |
|
|
|
lyrics = db.Column(db.Text, nullable=False) |
|
|
|
pista = db.Column(db.Integer, nullable=False) # Nuevo campo |
|
|
|
|
|
|
|
|
|
|
|
def __repr__(self): |
|
|
|
return f'<Song {self.title}>' |