migrate from github

This commit is contained in:
2026-07-15 22:42:31 +08:00
commit 3ad559f05e
262 changed files with 21637 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
package model
import (
"time"
)
type Notification struct {
ID int64 `gorm:"primaryKey;autoIncrement" json:"id"`
ExternalID string `gorm:"size:100;unique;index" json:"external_id"`
ReceiverID int64 `gorm:"index;not null" json:"receiver_id"`
Type string `gorm:"size:64;not null" json:"type"`
Status string `gorm:"size:32;not null;default:unread" json:"status"`
Title string `gorm:"size:255" json:"title"`
Content string `gorm:"size:1024" json:"content"`
Payload string `gorm:"type:jsonb" json:"payload"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
func (Notification) TableName() string {
return "notifications"
}