fix on cpf/cnpj column size
parent
3b9fa900c8
commit
0a640c4726
|
|
@ -87,7 +87,7 @@ func ConnectDB() error {
|
||||||
CompanyName: "PCast",
|
CompanyName: "PCast",
|
||||||
Password: passwd,
|
Password: passwd,
|
||||||
Url: "https://pcastive.com",
|
Url: "https://pcastive.com",
|
||||||
CpfCnpj: "49083957000138",
|
CpfCnpj: "49.083.957/0001-38",
|
||||||
Channel: "pcastlive",
|
Channel: "pcastlive",
|
||||||
UserType: "A",
|
UserType: "A",
|
||||||
Blocked: "N",
|
Blocked: "N",
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ type User struct {
|
||||||
Password []byte `gorm:"size:100;not null;" json:"-"`
|
Password []byte `gorm:"size:100;not null;" json:"-"`
|
||||||
Channel string `gorm:"size:40;not null" json:"channel"`
|
Channel string `gorm:"size:40;not null" json:"channel"`
|
||||||
Url string `gorm:"size:40;not null" json:"url"`
|
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"`
|
UserType string `gorm:"size:1;not null;default:U" json:"usertype"`
|
||||||
Plan string `gorm:"size:1;not null;default:1" json:"T"`
|
Plan string `gorm:"size:1;not null;default:1" json:"T"`
|
||||||
Blocked string `gorm:"size:1;not null;default:N" json:"blocked"`
|
Blocked string `gorm:"size:1;not null;default:N" json:"blocked"`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue