
This commit includes: - Project structure and FastAPI setup - SQLAlchemy models for users, vehicles, schedules, and tickets - Alembic migrations - User authentication and management - Vehicle and schedule management - Ticket purchase and cancellation with time restrictions - Comprehensive API documentation
29 lines
396 B
Plaintext
29 lines
396 B
Plaintext
# Database Migrations
|
|
|
|
This directory contains database migrations for the Multimodal Ticketing System project.
|
|
|
|
## Migration Commands
|
|
|
|
To run migrations:
|
|
|
|
```bash
|
|
alembic upgrade head
|
|
```
|
|
|
|
To create a new migration:
|
|
|
|
```bash
|
|
alembic revision -m "description of changes"
|
|
```
|
|
|
|
To show current migration version:
|
|
|
|
```bash
|
|
alembic current
|
|
```
|
|
|
|
To show migration history:
|
|
|
|
```bash
|
|
alembic history
|
|
``` |