16 lines
372 B
Go
16 lines
372 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Subscription struct {
|
|
ID int `json:"id"`
|
|
ServiceName string `json:"service_name"`
|
|
Price int `json:"price"`
|
|
UserID uuid.UUID `json:"user_id"`
|
|
StartDate time.Time `json:"start_date"`
|
|
EndDate *time.Time `json:"end_date,omitempty"`
|
|
}
|