tvid is a redirection manager for televisions, lobby displays, status dashboards, and the like, so that you can set all of the displays in your organization to one URL and manage them via the web.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
tvid/tvid/db.py

19 строки
513 B

4 лет назад
from sqlalchemy import Column, Sequence, Integer, String, DateTime
from sqlalchemy.ext.declarative import declarative_base
from .server import SQLBASE
Base = SQLBASE
# YAGNI just set admin pw in an env var for now and dont support changing it
# yet
4 лет назад
# class Settings(Base):
4 лет назад
class TV(Base):
4 лет назад
__tablename__ = "tvs"
id = Column(Integer, Sequence("id_seq"), primary_key=True)
4 лет назад
displayid = Column(String(20))
lastSeen = Column(DateTime)
target = Column(String(255))
4 лет назад
memo = Column(String(255))