- docker run --name=postgres -e POSTGRES_PASSWORD='qwerty' -p 5432:5432 -d postgres
- migrate create -ext sql -dir ./migrations -seq init
https://github.com/golang-migrate/migrate
- migrate -path ./migrations -database "postgres://postgres:qwerty@localhost:5432/postgres?sslmode=disable" up
{ "route": "Омск-Москва" }
response: { "id": "a7d00b0d-f23a-4ddc-a5da-8aecf316ba8a", "route": "Омск-Москва" }
{ "fullname": "Иванов Иван Иваныч", "age": 29, "phone": "+79135896712", "email": "ivanov@mail.ru" }
response:
{ "id": "dcd23855-3fd0-490a-9aff-c3890aabe854", "age": 29, "email": "ivanov@mail.ru", "fullname": "Иванов Иван Иваныч", "phone": "+79135896712" }