fix: ajustar schema SQL para incluir colunas client_email e price

This commit is contained in:
Sidney 2026-07-18 22:53:24 -03:00
parent a30ec6f952
commit dfcfdae1f8
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ CREATE TABLE IF NOT EXISTS plans (
name VARCHAR(100) NOT NULL,
slug VARCHAR(100) UNIQUE NOT NULL,
description TEXT,
price NUMERIC(10,2) NOT NULL DEFAULT 0,
price_monthly NUMERIC(10,2) NOT NULL DEFAULT 0,
price_yearly NUMERIC(10,2) NOT NULL DEFAULT 0,
max_professionals INT NOT NULL DEFAULT 1,
@ -201,6 +202,7 @@ CREATE TABLE IF NOT EXISTS appointments (
notes TEXT,
client_name VARCHAR(200), -- for walk-ins
client_phone VARCHAR(20),
client_email VARCHAR(200),
source VARCHAR(20) DEFAULT 'manual', -- manual, online, whatsapp
cancelled_at TIMESTAMPTZ,
cancellation_reason TEXT,