13 lines
349 B
Python
13 lines
349 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,
|
|
"inherit_condition": id == Dbref.id
|
|
}
|