/
s4ze
/
api-lab2
Обзор
Документация
Войти
/
s4ze
/
api-lab2
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
internal/models/api_key.go
12 строк
273 B
s4ze
fix: update database connection string with timeout, modify API routes, and adjust model fields
26 ноя 2025, 19:28
26 ноя 2025, 19:28
3602221
Код
Авторство
О чём код?
package models import "time" type APIKey struct { ID string `json:"id"` UserID string `json:"user_id"` Key string `json:"key"` KeyHash string `json:"-"` CreatedAt time.Time `json:"created_at"` ExpiresAt time.Time `json:"expires_at"` }