package entity

import (
	"git.gocasts.ir/ebhomengo/niki/types"
	"time"
)

type DonationApp struct {
	ID             types.ID  `json:"id"`
	CampaignID     types.ID  `json:"campaign_id"`
	UserID         *types.ID `json:"user_id,omitempty"`
	SourceType     string    `json:"source_type"` // : "affiliate", "app", "qr", "sms", "social"
	SourceName     string    `json:"source_name"` //  "user_name", "donate_app", "instagram"
	ReferralCode   string    `json:"referral_code"`
	Link           string    `json:"link"`
	Clicks         int64     `json:"clicks"`
	Conversions    int64     `json:"conversions"`
	DonationsTotal float64   `json:"donations_total"`
	CreatedAt      time.Time `json:"created_at"`
}
