Initialize repository

This commit is contained in:
eikendev 2020-07-26 00:28:38 +02:00
commit 1d758fcfd0
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694
28 changed files with 1107 additions and 0 deletions

10
model/application.go Normal file
View file

@ -0,0 +1,10 @@
package model
// Application holds information like the name, the token, and the associated user of an application.
type Application struct {
ID uint `gorm:"AUTO_INCREMENT;primary_key" json:"id"`
Token string `gorm:"type:string;size:64;unique" json:"token"`
UserID uint `json:"-"`
Name string `gorm:"type:string" form:"name" query:"name" json:"name" binding:"required"`
MatrixID string `gorm:"type:string"`
}