2021-06-22 09:50:40 +00:00
|
|
|
package models
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/google/uuid"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Snippet struct {
|
|
|
|
ID int `db:"id"`
|
|
|
|
OwnerID int `db:"owner_id"`
|
|
|
|
|
2021-08-24 00:49:39 +00:00
|
|
|
When time.Time `db:"\"when\""`
|
2021-06-22 09:50:40 +00:00
|
|
|
|
|
|
|
Description string `db:"description"`
|
|
|
|
DescriptionHtml string `db:"_description_html"`
|
|
|
|
|
|
|
|
Url *string `db:"url"`
|
|
|
|
AssetID *uuid.UUID `db:"asset_id"`
|
|
|
|
|
|
|
|
EditedOnWebsite bool `db:"edited_on_website"`
|
|
|
|
DiscordMessageID *string `db:"discord_message_id"`
|
|
|
|
}
|