initial
This commit is contained in:
12
src/ma/database/abstract_database.go
Normal file
12
src/ma/database/abstract_database.go
Normal 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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user