- Add FastAPI service for managing oil delivery services - Implement service scheduling and management endpoints - Add customer service history tracking - Include database models for services, customers, and auto-delivery - Add authentication and authorization middleware - Configure Docker support for local, dev, and prod environments - Add comprehensive .gitignore for Python projects
21 lines
614 B
Python
21 lines
614 B
Python
from sqlalchemy import Column, Integer, String, Text, TIMESTAMP
|
|
from database import Base
|
|
|
|
|
|
class Auth_User(Base):
|
|
__tablename__ = 'auth_users'
|
|
__table_args__ = {"schema": "public"}
|
|
|
|
id = Column(Integer, primary_key=True, autoincrement=True)
|
|
uuid = Column(String(32))
|
|
api_key = Column(Text)
|
|
username = Column(String(40))
|
|
password_hash = Column(Text)
|
|
member_since = Column(TIMESTAMP)
|
|
email = Column(String(350))
|
|
last_seen = Column(TIMESTAMP)
|
|
admin = Column(Integer)
|
|
admin_role = Column(Integer)
|
|
confirmed = Column(Integer)
|
|
active = Column(Integer, default=1)
|