34132-vm/db/migrations/003_add_roles_and_premium_templates.sql
Flatlogic Bot 7a4a20350d MagiCV
2025-09-17 12:13:33 +00:00

9 lines
345 B
SQL

-- Add role to users table
ALTER TABLE `users` ADD `role` VARCHAR(50) NOT NULL DEFAULT 'free';
-- Add is_premium to templates table
ALTER TABLE `templates` ADD `is_premium` BOOLEAN NOT NULL DEFAULT FALSE;
-- Set the "Professional" template as premium for demonstration
UPDATE `templates` SET `is_premium` = TRUE WHERE `name` = 'Professional';