refactor: Rename tables
This commit is contained in:
@@ -31,7 +31,7 @@ type Service struct {
|
||||
}
|
||||
|
||||
func (Service) TableName() string {
|
||||
return "service"
|
||||
return "services"
|
||||
}
|
||||
|
||||
func (s Service) CountLastStatuses(status StatusCode) uint {
|
||||
|
||||
@@ -23,7 +23,7 @@ type Status struct {
|
||||
}
|
||||
|
||||
func (Status) TableName() string {
|
||||
return "status"
|
||||
return "statuses"
|
||||
}
|
||||
|
||||
func (s *Status) BeforeCreate(*gorm.DB) error {
|
||||
|
||||
Reference in New Issue
Block a user