#!/usr/bin/env python3
"""FastAPI sample application."""
from typing import List, Optional
from pydantic import BaseModel
# from fastapi import FastAPI, HTTPException  # Uncomment in real project

class UserBase(BaseModel):
    name: str
    email: str

class UserCreate(UserBase):
    password: str

class User(UserBase):
    id: int
    is_active: bool = True
    class Config:
        from_attributes = True

# app = FastAPI(title='Sample API', version='1.0.0')
# 
# @app.get('/users', response_model=List[User])
# async def list_users(skip: int = 0, limit: int = 10):
#     return db.query(User).offset(skip).limit(limit).all()
# 
# @app.post('/users', response_model=User, status_code=201)
# async def create_user(user: UserCreate):
#     return db.create(user)

print('Sample FastAPI application structure')
