Initial commit: Add EAMCO Service API
- 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
This commit is contained in:
20
app/models/auth.py
Normal file
20
app/models/auth.py
Normal file
@@ -0,0 +1,20 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user