message_record.go 349 字节
package models

import "time"

type ReceivedMessage struct {
	tableName   struct{} `pg:"received_message"`
	MessageId   int64    `pg:"pk:message_id"`
	MessageType string
	MessageBody string
	OccurredOn  time.Time
	CreatedAt   time.Time  `pg:"default:now()"`
	UpdatedAt   time.Time  `pg:"default:now()"`
	DeletedAt   *time.Time `pg:",soft_delete"`
}