kintone excel new format

This commit is contained in:
2024-02-06 17:37:55 +09:00
parent 35ae2539cb
commit 1e7d553bd6
2 changed files with 18 additions and 3 deletions

View File

@@ -291,3 +291,7 @@ def create_log(db: Session, error:schemas.ErrorCreate):
db.commit()
db.refresh(db_log)
return db_log
def get_kintoneformat(db: Session):
formats = db.query(models.KintoneFormat).order_by(models.KintoneFormat.id).all()
return formats

View File

@@ -95,7 +95,18 @@ class EventAction(Base):
class ErrorLog(Base):
__tablename__ = "errorlog"
id = Column(Integer, primary_key=True, index=True)
title = Column(String(50))
location = Column(String(500))
content = Column(String(5000))
class KintoneFormat(Base):
__tablename__ = "kintoneformat"
name = Column(String(50))
startrow =Column(Integer)
startcolumn =Column(Integer)
typecolumn =Column(Integer)
codecolumn =Column(Integer)
field = Column(String(5000))
trueformat = Column(String(10))