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文字以内のものにしてください。
18 行
513 B
18 行
513 B
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):
|
|
|
|
|
|
class TV(Base):
|
|
__tablename__ = "tvs"
|
|
id = Column(Integer, Sequence("id_seq"), primary_key=True)
|
|
displayid = Column(String(20))
|
|
lastSeen = Column(DateTime)
|
|
target = Column(String(255))
|
|
memo = Column(String(255))
|
|
|