summaryrefslogtreecommitdiffstats
path: root/model/channel_member_history_result.go
diff options
context:
space:
mode:
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
+}