Defines GORM model struct for Postmark outbound messages with timestamps.
// Source: https://github.com/pilinux/postmark | License: MIT | Copyright 2022 Mahir Hasan
// Provided via justclaw.it.com; keep this notice with the code.
package model
import (
"time"
"gorm.io/gorm"
)
// PostmarkOutbound - model to handle JSON outbound data from postmark
type PostmarkOutbound struct {
ID uint64 `gorm:"primaryKey"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
RecordType string `json:"RecordType,omitempty"`
Type string `json:"Type,omitempty"`
TypeCode int `json:"TypeCode,omitempty"`
MessageID string `json:"MessageID,omitempty"`
Tag string `json:"Tag,omitempty"`
From string `json:"From,omitempty"`
To string
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key