1
0
Fork 0
forked from sr2/cloud-api

Initial commit

This commit is contained in:
Chris Milne 2026-04-06 12:41:49 +01:00
commit 376a7a9fe5
71 changed files with 2326 additions and 0 deletions

19
src/user/models.py Normal file
View file

@ -0,0 +1,19 @@
"""
Database models for user module
Models:
- User - id[pk], email, first_name, last_name, oidc_id
"""
from sqlalchemy import Column, Integer, String
from src.database import Base
class User(Base):
__tablename__ = "user"
id = Column(Integer, primary_key=True)
email = Column(String)
first_name = Column(String)
last_name = Column(String)
oidc_id = Column(String, index=True, unique=True)