This commit is contained in:
2024-12-01 15:56:24 +01:00
commit e241319e6e
13 changed files with 525 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
package database
import "time"
import "gorm.io/gorm"
type Message struct {
Time time.Time `gorm:"not null;primary_key"`
Topic string `gorm:"not null"`
Payload string `gorm:"not null"`
}