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
+17
View File
@@ -0,0 +1,17 @@
from sqlalchemy import Column, DateTime, String
from sqlalchemy.sql import func
from .base import AutoID, Base
class User(Base, AutoID):
__tablename__ = "users"
google_id = Column(String, unique=True, index=True)
email = Column(String, unique=True, index=True)
name = Column(String)
avatar = Column(String)
created_at = Column(DateTime(timezone=True), server_default=func.now())
def __repr__(self):
return f"<User(id={self.id}, name={self.name}, email={self.email})>"