refactor: Rename tables

This commit is contained in:
2025-08-19 20:38:33 +03:00
parent b59b5897fb
commit 4e186de981
4 changed files with 7 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ type Service struct {
}
func (Service) TableName() string {
return "service"
return "services"
}
func (s Service) CountLastStatuses(status StatusCode) uint {

View File

@@ -23,7 +23,7 @@ type Status struct {
}
func (Status) TableName() string {
return "status"
return "statuses"
}
func (s *Status) BeforeCreate(*gorm.DB) error {