From dff0be2b1dc8437475d6056732fe845b6fab2e50 Mon Sep 17 00:00:00 2001 From: Christian Krakau-Louis Date: Sun, 9 Feb 2025 16:22:07 +0100 Subject: [PATCH] Create models.py --- app/models.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 app/models.py diff --git a/app/models.py b/app/models.py new file mode 100644 index 00000000..251c4e2c --- /dev/null +++ b/app/models.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python3 + +from .database import Base +from sqlalchemy import Column, String, Integer + +class DocumentMetadata(Base): + __tablename__ = "documents" + + id = Column(Integer, primary_key=True, index=True) + filename = Column(String, unique=True, index=True) + sender = Column(String) + recipient = Column(String) + tags = Column(String) + summary = Column(String)