Deploy from Lumerel
This commit is contained in:
30
migrations/001_create_onboarding_sessions_table.php
Normal file
30
migrations/001_create_onboarding_sessions_table.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
// Create onboarding sessions table
|
||||
$pdo->exec("
|
||||
CREATE TABLE IF NOT EXISTS onboarding_sessions (
|
||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||
session_token VARCHAR(64) UNIQUE NOT NULL,
|
||||
company_name VARCHAR(255),
|
||||
company_logo VARCHAR(255),
|
||||
primary_color VARCHAR(7),
|
||||
secondary_color VARCHAR(7),
|
||||
industry VARCHAR(100),
|
||||
company_tagline TEXT,
|
||||
quote_format VARCHAR(50),
|
||||
payment_terms VARCHAR(100),
|
||||
quote_validity_days INT,
|
||||
show_itemized_pricing BOOLEAN DEFAULT 1,
|
||||
include_terms_conditions BOOLEAN DEFAULT 1,
|
||||
contact_name VARCHAR(255),
|
||||
contact_email VARCHAR(255),
|
||||
contact_phone VARCHAR(50),
|
||||
contact_address TEXT,
|
||||
website VARCHAR(255),
|
||||
current_step INT DEFAULT 1,
|
||||
completed BOOLEAN DEFAULT 0,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
INDEX idx_session_token (session_token),
|
||||
INDEX idx_completed (completed)
|
||||
)
|
||||
");
|
||||
Reference in New Issue
Block a user