fix on cpf/cnpj column size

main
Nilo Roberto C Paim 2023-09-18 08:44:14 -03:00
parent 3b9fa900c8
commit 0a640c4726
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ func ConnectDB() error {
CompanyName: "PCast",
Password: passwd,
Url: "https://pcastive.com",
CpfCnpj: "49083957000138",
CpfCnpj: "49.083.957/0001-38",
Channel: "pcastlive",
UserType: "A",
Blocked: "N",

View File

@ -8,7 +8,7 @@ type User struct {
Password []byte `gorm:"size:100;not null;" json:"-"`
Channel string `gorm:"size:40;not null" json:"channel"`
Url string `gorm:"size:40;not null" json:"url"`
CpfCnpj string `gorm:"size:14;not null" json:"cpfcnpj"`
CpfCnpj string `gorm:"size:20;not null" json:"cpfcnpj"`
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"`