/**
 * Тарифы по аналогии с Perplexity: Free, Pro, Max
 * docs/architecture: 01-perplexity-analogue-design.md §2.2
 */

import { plans } from './db/schema.js';

export const PLANS: (typeof plans.$inferInsert)[] = [
  {
    id: 'free',
    name: 'Free',
    priceMonthly: 0,
    priceYearly: 0,
    currency: 'RUB',
    features: [
      '5 Quick Searches per day',
      'Standard models',
      'Web search',
      'Basic export',
    ],
    limits: { quickSearchesPerDay: 5, proSearchesPerDay: 0, deepResearchPerMonth: 0 },
  },
  {
    id: 'pro',
    name: 'Pro',
    priceMonthly: 1990, // 19.90 USD в копейках для RUB
    priceYearly: 19900, // ~199 USD/год
    currency: 'RUB',
    features: [
      'Unlimited Quick Searches',
      'Pro Search (multi-step)',
      '5 Deep Research per month',
      'Pro models (GPT-4, Claude)',
      'Image generation',
      'File uploads',
      'Memory',
      'Export PDF/MD',
    ],
    limits: { quickSearchesPerDay: -1, proSearchesPerDay: -1, deepResearchPerMonth: 5 },
  },
  {
    id: 'max',
    name: 'Max',
    priceMonthly: 2990,
    priceYearly: 29900,
    currency: 'RUB',
    features: [
      'Everything in Pro',
      'Unlimited Deep Research',
      'Model Council (3 models)',
      'Background Assistant',
      'Priority support',
    ],
    limits: { quickSearchesPerDay: -1, proSearchesPerDay: -1, deepResearchPerMonth: -1 },
  },
];
