first commit
This commit is contained in:
12
backend/app/models/log.py
Normal file
12
backend/app/models/log.py
Normal file
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user