summaryrefslogtreecommitdiffstats
path: root/model/channel_member_history_result.go
diff options
context:
space:
mode:
authorJonathan Fritz <jonathan.fritz@mattermost.com>2018-02-13 10:48:34 -0500
committerJonathan Fritz <jonathan.fritz@mattermost.com>2018-02-13 10:48:34 -0500
commit8c22c5c6c6f835a6e73faf19036bad2a51bb9127 (patch)
treeba044fc2850387ef0ed3f34f005500dc7b862c47 /model/channel_member_history_result.go
parent18fa32567b56584c6e24da2ae68814d5bf8ece6f (diff)
downloadchat-8c22c5c6c6f835a6e73faf19036bad2a51bb9127.tar.gz
chat-8c22c5c6c6f835a6e73faf19036bad2a51bb9127.tar.bz2
chat-8c22c5c6c6f835a6e73faf19036bad2a51bb9127.zip
Renamed file to match existing scheme
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
+}