debug
parent
bcbbfdf6be
commit
f9563b36cf
|
|
@ -163,10 +163,10 @@ type Servidor struct {
|
||||||
Canais []Canal `gorm:"foreignKey:ServidorID"`
|
Canais []Canal `gorm:"foreignKey:ServidorID"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// // TableName overrides the table name
|
// TableName overrides the table name
|
||||||
// func (Server) TableName() string {
|
func (Servidor) TableName() string {
|
||||||
// return "servers"
|
return "servidor"
|
||||||
// }
|
}
|
||||||
|
|
||||||
// // Plan represents the plans table in the database
|
// // Plan represents the plans table in the database
|
||||||
// type Plan struct {
|
// type Plan struct {
|
||||||
|
|
@ -223,19 +223,6 @@ func (Canal) TableName() string {
|
||||||
return "canal"
|
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
|
// Available on RAM during the execution
|
||||||
// CurrentTransmission represents the transmissions table in the database
|
// CurrentTransmission represents the transmissions table in the database
|
||||||
type CurrentTransmission struct {
|
type CurrentTransmission struct {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue