code: entity, migration, quick migration

This commit is contained in:
Gabor Körber
2023-12-20 23:12:02 +01:00
parent 099278a5d5
commit 52a69e4695
13 changed files with 784 additions and 54 deletions

View File

@@ -1,15 +1,15 @@
default:
@just hello
@echo "# Miniweb Project"
@just --list
# Run Service
run:
@cargo run --bin miniweb
# Run Bins
bin args='':
@cargo run --bin {{args}}
hello:
@echo "Hello, world!"
status:
sea-orm-cli status
@@ -21,12 +21,15 @@ pg-up:
pg-down:
cd docker && docker-compose down
# Run Migrations
migrate:
sea-orm-cli up
# Install Developer dependencies
dev-install:
cargo install sea-orm-cli
# Reset Database
dev-reset:
sea-orm-cli migrate reset