Created
May 3, 2019 14:58
-
-
Save lolobosse/897a9e6d2be8cebfb2b3d2c6eff49744 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 Task(db.Model): | |
__tablename__ = 'task_tb' | |
id = db.Column(db.Integer, primary_key=True) | |
type = db.Column(db.String(SLen.NAME)) | |
arguments = db.Column(db.String(2000)) | |
created_at = db.Column(db.DateTime, default=func.now()) | |
__table_args__ = (UniqueConstraint('type', 'arguments', name='unique_task'),) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment