functioning

This commit is contained in:
2025-01-14 14:30:13 +02:00
parent a90f72022b
commit fa1f0a0037
8 changed files with 186 additions and 9 deletions

10
models.py Normal file
View File

@@ -0,0 +1,10 @@
from app import db
class Content(db.Model):
id = db.Column(db.Integer, primary_key=True)
file_name = db.Column(db.String(120), nullable=False)
duration = db.Column(db.Integer, nullable=False)
player_id = db.Column(db.Integer, db.ForeignKey('player.id'), nullable=True)
group_id = db.Column(db.Integer, db.ForeignKey('group.id'), nullable=True)
# other models...