Create models.py
This commit is contained in:
committed by
GitHub
parent
a924fe9f9e
commit
dff0be2b1d
@@ -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)
|
||||
Reference in New Issue
Block a user