审查视图

pkg/infrastructure/pg/models/message_record.go 349 字节
tangxvhui authored
1 2 3 4 5 6 7 8 9 10
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
庄敏学 authored
11 12 13
	CreatedAt   time.Time  `pg:"default:now()"`
	UpdatedAt   time.Time  `pg:"default:now()"`
	DeletedAt   *time.Time `pg:",soft_delete"`
tangxvhui authored
14
}