All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
19 lines
700 B
Python
19 lines
700 B
Python
from sqlalchemy import Column, Integer, String, DateTime, Text, Boolean
|
|
from datetime import datetime
|
|
from app.database.database import Base
|
|
|
|
|
|
class ContactMessage(Base):
|
|
__tablename__ = "contact_message"
|
|
|
|
id = Column(Integer, primary_key=True, index=True)
|
|
full_name = Column(String, nullable=False)
|
|
email = Column(String, nullable=False)
|
|
phone = Column(String, nullable=True)
|
|
subject = Column(String, nullable=False)
|
|
message = Column(Text, nullable=False)
|
|
created_at = Column(DateTime, default=datetime.utcnow)
|
|
is_read = Column(Boolean, default=False)
|
|
status = Column(String, default='new') # new, read, replied
|
|
admin_notes = Column(Text, nullable=True)
|