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.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tvid/tvid/db.py

19 line
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
# class Settings(Base):
4 年之前
class TV(Base):
__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))