Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug:use mysql #104

Open
jxc1690 opened this issue Jan 13, 2025 · 1 comment
Open

bug:use mysql #104

jxc1690 opened this issue Jan 13, 2025 · 1 comment

Comments

@jxc1690
Copy link

jxc1690 commented Jan 13, 2025

storage/session.go:8-13

type Session struct {
	ID      int `gorm:"primary_key"`
	Version int
	Phone   string `gorm:"uniqueIndex"`
	Data    []byte
}

to

type Session struct {
	ID      int `gorm:"primary_key"`
	Version int
	Phone   string `gorm:"uniqueIndex;not null;type:varchar(100)"`
	Data    []byte
}
@celestix
Copy link
Owner

Please explain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants