* TP-42310| created api service to get list of slackbots (#215) * TP-42310| created api service to get list of slackbots * minor bug fix in GetAllHoustonUserBots function * Synch users to db (#213) * TP-43103| added event listeners to user detail changes and saving to db * TP-43103| refactored the upsert users scheduler * TP-43103| fixed updating users when deactivated in scheduler * TP-43103| Made the requested changes * added info loggers to user change events * made changes to process only navi workspace user changes * made addressed changes in pr and returning Real name in GetAllHoustonUserBots api * resolved merge conflicts
19 lines
277 B
Go
19 lines
277 B
Go
package user
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
type UserEntity struct {
|
|
gorm.Model
|
|
Name string
|
|
SlackUserId string
|
|
Active bool
|
|
IsBot bool
|
|
Email string
|
|
RealName string
|
|
Image string
|
|
}
|
|
|
|
func (UserEntity) TableName() string {
|
|
return "houston_user"
|
|
}
|