backend-service/internal/models/notification.go
ats-tech25 488be7b8ef feat(project): Initialize project structure and core components
- Add initial project scaffolding with Go module and project structure
- Create server and CLI entry points for application
- Implement Makefile with development and build commands
- Add `.env.example` with comprehensive configuration template
- Set up README.md with project documentation and setup instructions
- Configure basic dependencies for server, database, and CLI tools
- Establish internal package structure for models, services, and handlers
- Add initial configuration and environment management
- Prepare for HTTP server, CLI, and database integration
2025-11-05 15:06:07 +00:00

20 lines
544 B
Go

package models
import (
"time"
"gorm.io/gorm"
)
// Notification represents email notifications
type Notification struct {
gorm.Model
UserID uint `json:"user_id"`
Type string `json:"type"` // welcome, payment_success, payment_failed, meeting_info, reminder
Subject string `json:"subject"`
Body string `json:"body"`
SentAt *time.Time `json:"sent_at"`
Status string `json:"status" gorm:"default:'pending'"` // pending, sent, failed
ScheduledAt *time.Time `json:"scheduled_at"`
}