2025-02-24 16:48:20 +08:00
|
|
|
package subscribedomain
|
|
|
|
|
|
2025-03-05 21:21:44 +08:00
|
|
|
import (
|
2025-03-08 22:46:05 +08:00
|
|
|
subscribeplan "legalgo-BE-go/internal/domain/subscribe_plan"
|
2025-03-05 21:21:44 +08:00
|
|
|
"time"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Subscribe struct {
|
2025-03-08 22:46:05 +08:00
|
|
|
ID string `json:"id"`
|
|
|
|
|
SubscribePlanID string `json:"subscribe_plan_id"`
|
|
|
|
|
StartDate time.Time `json:"start_date"`
|
|
|
|
|
EndDate *time.Time `json:"end_date"`
|
|
|
|
|
Status string `json:"status"`
|
|
|
|
|
AutoRenew bool `json:"auto_renew"`
|
|
|
|
|
UpdatedAt time.Time `json:"updated_at"`
|
2025-03-05 21:21:44 +08:00
|
|
|
|
2025-03-08 22:46:05 +08:00
|
|
|
SubscribePlan subscribeplan.SubscribePlan `gorm:"foreignKey:SubscribePlanID" json:"subscribe_plan"`
|
2025-03-05 21:21:44 +08:00
|
|
|
}
|