modified: .env

modified:   bot.db
	modified:   db/db.go
	modified:   go.mod
	modified:   go.sum
	modified:   handlers/dashboard.go
	modified:   main.go
	modified:   services/openrouter.go
	modified:   templates/dashboard.html
This commit is contained in:
2026-03-01 05:39:31 -03:00
parent 7a5f5d86f4
commit 9a341fed76
9 changed files with 270 additions and 46 deletions

View File

@@ -31,3 +31,11 @@ func Init() {
);`
Conn.Exec(schema)
}
func SaveAppointment(phone string, date string) error {
_, err := Conn.Exec(
"INSERT INTO appointments (customer_phone, appointment_date, status) VALUES (?, ?, ?)",
phone, date, "confirmed",
)
return err
}