main
Nilo Roberto C Paim 2025-12-05 23:43:37 -03:00
parent bcbbfdf6be
commit f9563b36cf
1 changed files with 4 additions and 17 deletions

View File

@ -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 {