modify the project, everything go under app folder

This commit is contained in:
2026-05-16 20:13:46 +08:00
parent 5be47649e2
commit ceea04299a
10 changed files with 9 additions and 9 deletions
+11
View File
@@ -0,0 +1,11 @@
from sqlalchemy import Column, DateTime, String, ForeignKey
from sqlalchemy.sql import func
from .base import Base, AutoID
class Message(Base, AutoID):
__tablename__ = "messages"
user_id = Column(String, ForeignKey("users.id"), index=True)
content = Column(String)
created_at = Column(DateTime(timezone=True), server_default=func.now())