[go: up one dir, main page]

File: track_to_file.py

package info (click to toggle)
cozy 1.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,140 kB
  • sloc: python: 8,014; xml: 392; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 335 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
from peewee import ForeignKeyField, IntegerField

from cozy.db.file import File
from cozy.db.model_base import ModelBase
from cozy.db.track import Track


class TrackToFile(ModelBase):
    track = ForeignKeyField(Track, unique=True, backref='track_to_file')
    file = ForeignKeyField(File, unique=False)
    start_at = IntegerField()