# MongoDB Configuration Examples

## Single Instance
DATABASE_URL=mongodb://localhost:27017/library

## Replica Set (Local)
# DATABASE_URL=mongodb://localhost:27017,localhost:27018,localhost:27019/library?replicaSet=rs0
# MONGODB_REPLICA_SET=rs0
# MONGODB_READ_PREFERENCE=secondaryPreferred
# MONGODB_WRITE_CONCERN=majority

## MongoDB Atlas (Cloud)
# DATABASE_URL=mongodb+srv://username:password@cluster.mongodb.net/library?retryWrites=true&w=majority
# MONGODB_READ_PREFERENCE=secondaryPreferred
# MONGODB_WRITE_CONCERN=majority

## PostgreSQL
# DATABASE_URL=postgresql://user:password@localhost:5432/library

## MySQL
# DATABASE_URL=mysql://user:password@localhost:3306/library

## SQLite (default)
# DATABASE_URL=sqlite:///library.db

# JWT Configuration
SECRET_KEY=TabernacleORM
ACCESS_TOKEN_EXPIRE_MINUTES=30

# Loan Settings
DEFAULT_LOAN_DAYS=14
MAX_LOANS_PER_USER=5
FINE_PER_DAY=0.50

# App Settings
DEBUG=True
