summaryrefslogtreecommitdiffstats
path: root/model/channel_member_history_result.go
diff options
context:
space:
mode:
authorJonathan <jonfritz@gmail.com>2018-02-13 15:17:29 -0500
committerJoram Wilander <jwawilander@gmail.com>2018-02-13 15:17:29 -0500
commitbf1fdf92c71df29ddb7b0e31a00e218863c1158c (patch)
tree56d24dd65c0b44797946bf3eff48c7c5804fbdb2 /model/channel_member_history_result.go
parent5c560db8102b8ce6dc29bf91ab5e24ca4af66fdf (diff)
downloadchat-bf1fdf92c71df29ddb7b0e31a00e218863c1158c.tar.gz
chat-bf1fdf92c71df29ddb7b0e31a00e218863c1158c.tar.bz2
chat-bf1fdf92c71df29ddb7b0e31a00e218863c1158c.zip
XYZ-110: Cherrypicking changes from release-4.7 to master (#8254)
* Cherry-picking 7b2861de3a09cf00d00b0872cc537d54302c4bfa to master because enterprise/master has code in it that enterprise/release-4.7 does not, and I don't want enterprise/master to break the next time somebody merges enterprise/release-4.7 to enterprise/master * Renamed file to match existing scheme (cherry picked from commit 8c22c5c6c6f835a6e73faf19036bad2a51bb9127)
Diffstat (limited to 'model/channel_member_history_result.go')
-rw-r--r--model/channel_member_history_result.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/model/channel_member_history_result.go b/model/channel_member_history_result.go
new file mode 100644
index 000000000..ed3e79639
--- /dev/null
+++ b/model/channel_member_history_result.go
@@ -0,0 +1,15 @@
+// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+package model
+
+type ChannelMemberHistoryResult struct {
+ ChannelId string
+ UserId string
+ JoinTime int64
+ LeaveTime *int64
+
+ // these two fields are never set in the database - when we SELECT, we join on Users to get them
+ UserEmail string `db:"Email"`
+ Username string
+}