12 lines
304 B
Python
12 lines
304 B
Python
from sqlalchemy import Column, Integer, ForeignKey
|
|
|
|
from muck.models.dbref import Dbref, ObjectType
|
|
|
|
class Program(Dbref):
|
|
__tablename__ = "programs"
|
|
|
|
id = Column(Integer, ForeignKey("dbref.id"), primary_key=True)
|
|
|
|
__mapper_args__ = {
|
|
"polymorphic_identity": ObjectType.PROGRAM
|
|
}
|