From f9563b36cf35090f3e0bcbf081e713038f3063b7 Mon Sep 17 00:00:00 2001 From: Nilo Roberto C Paim Date: Fri, 5 Dec 2025 23:43:37 -0300 Subject: [PATCH] debug --- models/models.go | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/models/models.go b/models/models.go index 2a44b0b..69c1cce 100644 --- a/models/models.go +++ b/models/models.go @@ -163,10 +163,10 @@ type Servidor struct { Canais []Canal `gorm:"foreignKey:ServidorID"` } -// // TableName overrides the table name -// func (Server) TableName() string { -// return "servers" -// } +// TableName overrides the table name +func (Servidor) TableName() string { + return "servidor" +} // // Plan represents the plans table in the database // type Plan struct { @@ -223,19 +223,6 @@ func (Canal) TableName() string { return "canal" } -// // TransmissionLog represents the transmissionlog table in the database -// type TransmissionLog struct { -// ID uint `gorm:"primaryKey;column:id;autoIncrement"` -// Datetime time.Time `gorm:"column:datetime;type:timestamp;not null"` -// Channel string `gorm:"column:channel;type:text;not null"` -// Message string `gorm:"column:message;type:text;not null"` -// } - -// // TableName overrides the table name -// func (TransmissionLog) TableName() string { -// return "transmissionlog" -// } - // Available on RAM during the execution // CurrentTransmission represents the transmissions table in the database type CurrentTransmission struct {