-- ============================================
-- TEMPLATE-SAAS: Sales Enums
-- Version: 1.0.0
-- Module: SAAS-018
-- ============================================

-- Lead status enum
CREATE TYPE sales.lead_status AS ENUM (
  'new',
  'contacted',
  'qualified',
  'unqualified',
  'converted'
);

-- Lead source enum
CREATE TYPE sales.lead_source AS ENUM (
  'website',
  'referral',
  'cold_call',
  'event',
  'advertisement',
  'social_media',
  'other'
);

-- Opportunity stage enum
CREATE TYPE sales.opportunity_stage AS ENUM (
  'prospecting',
  'qualification',
  'proposal',
  'negotiation',
  'closed_won',
  'closed_lost'
);

-- Activity type enum
CREATE TYPE sales.activity_type AS ENUM (
  'call',
  'meeting',
  'task',
  'email',
  'note'
);

-- Activity status enum
CREATE TYPE sales.activity_status AS ENUM (
  'pending',
  'completed',
  'cancelled'
);
