2021-06-22 09:50:40 +00:00
|
|
|
package models
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2021-08-06 23:23:51 +00:00
|
|
|
type DiscordSession struct {
|
|
|
|
ID string `db:"session_id"`
|
|
|
|
SequenceNumber int `db:"sequence_number"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DiscordOutgoingMessage struct {
|
|
|
|
ID int `db:"id"`
|
|
|
|
ChannelID string `db:"channel_id"`
|
|
|
|
PayloadJSON string `db:"payload_json"`
|
|
|
|
ExpiresAt time.Time `db:"expires_at"`
|
|
|
|
}
|
|
|
|
|
2021-06-22 09:50:40 +00:00
|
|
|
type DiscordMessage struct {
|
|
|
|
ID string `db:"id"`
|
|
|
|
ChannelID string `db:"channel_id"`
|
|
|
|
GuildID *string `db:"guild_id"`
|
|
|
|
Url string `db:"url"`
|
|
|
|
UserID string `db:"user_id"`
|
|
|
|
SentAt time.Time `db:"sent_at"`
|
|
|
|
SnippetCreated bool `db:"snippet_created"`
|
|
|
|
}
|