chore: baseline before agreements
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
from sqlalchemy import Column, Date, DateTime, ForeignKey, Integer, String, Text
|
||||
from sqlalchemy.orm import relationship
|
||||
from sqlalchemy.sql import func
|
||||
|
||||
from app.database.database import Base
|
||||
|
||||
|
||||
class WorkJournalEntry(Base):
|
||||
__tablename__ = "work_journal_entries"
|
||||
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
project_id = Column(Integer, ForeignKey("projects.id"), nullable=False, index=True)
|
||||
type = Column(String(16), nullable=False)
|
||||
text = Column(Text, nullable=False)
|
||||
status = Column(String(16), nullable=True, default=None)
|
||||
due_date = Column(Date)
|
||||
created_at = Column(DateTime, nullable=False, server_default=func.now())
|
||||
updated_at = Column(DateTime, nullable=False, server_default=func.now(), onupdate=func.now())
|
||||
|
||||
project = relationship("Project")
|
||||
Reference in New Issue
Block a user