Megagame.rs

Rebuiding the database

dropdb \
    -U postgres \
    -h localhost \
    -p 5432 \
    -w postgres; \
createdb \
    -U postgres \
    -h localhost \
    -p 5432 \
    -w postgres; \
sea-orm-cli migrate && \
sea-orm-cli generate entity \
    -o entity/src/entities \
    --expanded-format \
    --with-serde both

Making a new migration

sea-orm-cli migrate generate <name>