13 lines
360 B
Python
13 lines
360 B
Python
from sqlalchemy import Column, DateTime, Integer, Text
|
|
from sqlalchemy.sql import func
|
|
|
|
from app.db.session import Base
|
|
|
|
|
|
class OperationLog(Base):
|
|
__tablename__ = "operation_logs"
|
|
|
|
id = Column(Integer, primary_key=True, index=True)
|
|
message = Column(Text, nullable=False)
|
|
timestamp = Column(DateTime, server_default=func.now(), nullable=False)
|