You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
544 B
Python

from datetime import datetime
from sqlalchemy import func
from app.factory import db
from app import config
class WorkEvent(db.Model):
__tablename__ = 'work_events'
id = db.Column(db.String(80), primary_key=True)
create_date = db.Column(db.DateTime, server_default=func.now())
slack_channel = db.Column(db.String(50))
work_type = db.Column(db.String(50))
account_idx = db.Column(db.Integer)
start_date = db.Column(db.DateTime)
end_date = db.Column(db.DateTime)
def __repr__(self):
return self.id