package models

import (
	"time"

	"github.com/google/uuid"
)

type BillingRate struct {
	ID        uuid.UUID  `db:"id" json:"id"`
	TenantID  uuid.UUID  `db:"tenant_id" json:"tenant_id"`
	UserID    *uuid.UUID `db:"user_id" json:"user_id,omitempty"`
	Rate      float64    `db:"rate" json:"rate"`
	Currency  string     `db:"currency" json:"currency"`
	ValidFrom string     `db:"valid_from" json:"valid_from"`
	ValidTo   *string    `db:"valid_to" json:"valid_to,omitempty"`
	CreatedAt time.Time  `db:"created_at" json:"created_at"`
}
