You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
boundary/internal/authtoken/gorm.go

17 lines
307 B

package authtoken
// TableName returns the table name for the auth token.
func (s *AuthToken) TableName() string {
if s.tableName != "" {
return s.tableName
}
return "auth_token"
}
// SetTableName sets the table name.
func (s *AuthToken) SetTableName(n string) {
if n != "" {
s.tableName = n
}
}