18 lines
522 B
Go
18 lines
522 B
Go
package subscribedm
|
|
|
|
import (
|
|
subscribeplandm "legalgo-BE-go/internal/domain/subscribe_plan_model"
|
|
"time"
|
|
)
|
|
|
|
type Subscribe struct {
|
|
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"`
|
|
|
|
SubscribePlan subscribeplandm.SubscribePlan `gorm:"foreignKey:SubscribePlanID" json:"subscribe_plan"`
|
|
}
|