feat: connect to db

This commit is contained in:
Rogee
2024-11-28 16:15:08 +08:00
parent 857c23408b
commit 721058b0a9
19 changed files with 706 additions and 61 deletions

6
backend/Makefile Normal file
View File

@@ -0,0 +1,6 @@
.PHONY: model
model:
rm -rf ./database/telegram_resource
jet -dsn=postgresql://postgres:xixi0202@10.1.1.3:5432/telegram_resource?sslmode=disable -path=./database
gofumpt -w -l -extra ./database