diff --git a/backend/app/db/crud.py b/backend/app/db/crud.py index 0462218..0ffa054 100644 --- a/backend/app/db/crud.py +++ b/backend/app/db/crud.py @@ -290,4 +290,8 @@ def create_log(db: Session, error:schemas.ErrorCreate): db.add(db_log) db.commit() db.refresh(db_log) - return db_log \ No newline at end of file + return db_log + +def get_kintoneformat(db: Session): + formats = db.query(models.KintoneFormat).order_by(models.KintoneFormat.id).all() + return formats \ No newline at end of file diff --git a/backend/app/db/models.py b/backend/app/db/models.py index 153d5f2..e5285b4 100644 --- a/backend/app/db/models.py +++ b/backend/app/db/models.py @@ -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)) \ No newline at end of file + 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)) \ No newline at end of file