This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
thrempp/models/jid.go

22 lines
257 B
Go

package models
import (
"github.com/jinzhu/gorm"
"dev.sum7.eu/genofire/golang-lib/database"
)
type JID struct {
gorm.Model
Local string
Domain string
}
func (j *JID) TableName() string {
return "jid"
}
func init() {
database.AddModel(&JID{})
}