Created
September 17, 2015 12:59
-
-
Save minhoryang/8b9de6b7a18f2926ddbc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Action(ActionMixIn, db.Model): | |
__bind_key__ = __tablename__ = "action" | |
class Action_01_NotResponsed_ByMe(Action): | |
__bind_key__ = "action" | |
__tablename__ = "Action_01_NotResponsed_ByMe".lower() | |
id = db.Column(db.Integer, db.ForeignKey('action.id'), primary_key=True) | |
class Action_02_NotResponsed_ByYou(Action): | |
__bind_key__ = "action" | |
__tablename__ = "Action_02_NotResponsed_ByYou".lower() | |
id = db.Column(db.Integer, db.ForeignKey('action.id'), primary_key=True) | |
class Action_03_AskedOut(Action): | |
__bind_key__ = "action" | |
__tablename__ = "Action_03_AskedOut".lower() | |
id = db.Column(db.Integer, db.ForeignKey('action.id'), primary_key=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Action_01_NotResponsed_ByMe
Action_02_NotResponsed_ByYou
Action_03_AskedOut
과 같은 부분을 정리하고싶습니다.
Metaclass같은걸로도 될 것 같은데, 궁금합니다.