package adsdomain

import (
	"time"
)

type Ads struct {
	ID        string     `json:"id"`
	ImageUrl  string     `json:"image_url"`
	Url       string     `json:"url"`
	StartDate *time.Time `json:"start_date"`
	EndDate   *time.Time `json:"end_date"`
	CreatedAt time.Time  `json:"created_at"`
	UpdatedAt time.Time  `json:"updated_at"`
}

type AdsResponse struct {
	Ads
	Clicked int64 `json:"clicked"`
}

type AdsReq struct {
	Image     string     `json:"image" validate:"required"`
	URL       string     `json:"url" validate:"required"`
	StartDate *time.Time `json:"start_date" validate:"required"`
	EndDate   *time.Time `json:"end_date" validate:"required"`
}
