updated solution
This commit is contained in:
8
models/content.py
Normal file
8
models/content.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from extensions import db
|
||||
|
||||
class Content(db.Model):
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
file_name = db.Column(db.String(255), nullable=False)
|
||||
duration = db.Column(db.Integer, nullable=False)
|
||||
player_id = db.Column(db.Integer, db.ForeignKey('player.id'), nullable=False)
|
||||
position = db.Column(db.Integer, default=0)
|
||||
Reference in New Issue
Block a user