VILLASweb-backend-go/file/model.go
smavros a50626fd2f Improvement of models:
- Added 'not null' tags
- Followed associations according to Mongoose schemas from the current
backend
2019-03-31 13:48:26 +02:00

17 lines
313 B
Go

package file
import (
"github.com/jinzhu/gorm"
"time"
)
type File struct {
gorm.Model
Name string
Path string `gorm:"not null"`
Type string
Size uint
Dimmensions string // TODO: Mixed Type
FileUser User `gorm:"not null"`
Date Time `gorm:"default:Time.Now"`
}