I want to store audio files in my database. I know, for example, that strings would use db.String
, integers db.Integer
, but not what audio data would use. What data type is used to store this type of data in SQLAlchemy?
class Audio(db.Model):
__tablename__ = 'audio'
id = db.Column(db.Integer, primary_key=True)
timestamp = db.Column(db.DateTime, index=True, default=datetime.utcnow)
author_id = db.Column(db.Integer, db.ForeignKey('users.id'))
title = db.Column(db.String(64), unique=True)