model.py 445 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from sqlalchemy import Column, Integer, String
from mbdata.models import Base, Recording


def patch_recording():
    setattr(Recording, 'path', Column(String, nullable=False))
    setattr(Recording, 'ftype', Column(String, nullable=False))


class BrainzFS(Base):
    __tablename__ = 'brainzfs'

    id = Column(Integer, primary_key=True)
    schemaversion = Column(Integer, nullable=False)
    programversion = Column(Integer, nullable=False)