apifiber/models/users.go

16 lines
765 B
Go

package models
type User struct {
Id uint `gorm:"primary key" json:"id"`
Name string `gorm:"size:40;not null" json:"name"`
CompanyName string `gorm:"size:40;not null" json:"companyname"`
Email string `gorm:"size:40;not null;unique" json:"email"`
Password []byte `gorm:"size:100;not null;" json:"-"`
Channel string `gorm:"size:40;not null" json:"channel"`
UserType string `gorm:"size:1;not null;default:U" json:"usertype"`
Plan string `gorm:"size:1;not null;default:1" json:"T"`
Blocked string `gorm:"size:1;not null;default:N" json:"blocked"`
Cancelled string `gorm:"size:1;not null;default:N" json:"cancelled"`
CreatedBy string `gorm:"size:15;not null;default:Manual" json:"createdby"`
}