Skip to content

Commit

Permalink
修改索引长度
Browse files Browse the repository at this point in the history
  • Loading branch information
lifei6671 committed May 4, 2017
1 parent 2298822 commit ab5eb42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/member_token.go
Expand Up @@ -9,7 +9,7 @@ import (
type MemberToken struct {
TokenId int `orm:"column(token_id);pk;auto;unique" json:"token_id"`
MemberId int `orm:"column(member_id);type(int)" json:"member_id"`
Token string `orm:"column(token);size(255);index" json:"token"`
Token string `orm:"column(token);size(150);index" json:"token"`
Email string `orm:"column(email);size(255)" json:"email"`
IsValid bool `orm:"column(is_valid)" json:"is_valid"`
ValidTime time.Time `orm:"column(valid_time);null" json:"valid_time"`
Expand Down

0 comments on commit ab5eb42

Please sign in to comment.