Auto commit: 2025-10-12T23:56:55.326Z
This commit is contained in:
parent
9c156ace51
commit
c75634a6b6
@ -1,18 +1,10 @@
|
|||||||
-- Create the plans table
|
-- Create the plans table
|
||||||
CREATE TABLE IF NOT EXISTS `plans` (
|
CREATE TABLE IF NOT EXISTS `plans` (
|
||||||
`id` INT AUTO_INCREMENT PRIMARY KEY,
|
`id` INT AUTO_INCREMENT PRIMARY KEY,
|
||||||
`name` VARCHAR(255) NOT NULL,
|
`name` VARCHAR(255) NOT NULL UNIQUE,
|
||||||
`speed` VARCHAR(100) NOT NULL, -- e.g., '25/10 Mbps'
|
`speed_mbps` INT NOT NULL,
|
||||||
`price` DECIMAL(10, 2) NOT NULL,
|
`price_monthly` DECIMAL(10, 2) NOT NULL,
|
||||||
|
`contract_months` INT NOT NULL,
|
||||||
`description` TEXT,
|
`description` TEXT,
|
||||||
`is_active` BOOLEAN NOT NULL DEFAULT TRUE,
|
`created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||||
`contract_months` INT NOT NULL DEFAULT 1, -- e.g., 1 for month-to-month, 12 for a year
|
|
||||||
`created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
-- Insert the initial plans from the landing page
|
|
||||||
INSERT INTO `plans` (`name`, `speed`, `price`, `description`, `contract_months`) VALUES
|
|
||||||
('Basic', '25/10 Mbps', 59.00, 'Ideal for browsing and streaming.', 1),
|
|
||||||
('Standard', '50/20 Mbps', 69.00, 'Perfect for HD streaming and gaming.', 1),
|
|
||||||
('Premium', '100/40 Mbps', 89.00, 'For heavy usage and multiple devices.', 12),
|
|
||||||
('Ultimate', '1000/50 Mbps', 129.00, 'Ultimate speed for professionals.', 12);
|
|
||||||
|
|||||||
@ -1,4 +1,12 @@
|
|||||||
-- Seed the pages table with an "About Us" and "Terms of Service" page
|
-- Seed the pages table with an "About Us" and "Terms of Service" page
|
||||||
INSERT INTO `pages` (`title`, `slug`, `content`) VALUES
|
INSERT INTO `pages` (`title`, `slug`, `content`) VALUES
|
||||||
('About Us', 'about-us', '<h1>About Us</h1><p>We are a leading provider of telecommunication services, committed to connecting you to the world. This page was generated by the CMS.</p>'),
|
('About Us', 'about-us', '<h1>About Us</h1><p>We are a leading provider of telecommunication services, committed to connecting you to the world. This page was generated by the CMS.</p>'),
|
||||||
('Terms of Service', 'terms-of-service', '<h1>Terms of Service</h1><p>By using our services, you agree to our terms. This is a sample page.</p>');
|
('Terms of Service', 'terms-of-service', '<h1>Terms of Service</h1><p>By using our services, you agree to our terms. This is a sample page.</p>'),
|
||||||
|
('Privacy Policy', 'privacy-policy', '<h1>Privacy Policy</h1><p>Your privacy is important to us. This is a sample page.</p>');
|
||||||
|
|
||||||
|
-- Let's add some sample plans to make the landing page look populated.
|
||||||
|
INSERT INTO `plans` (`name`, `speed_mbps`, `price_monthly`, `contract_months`, `description`) VALUES
|
||||||
|
('Basic Connect', 25, 49.99, 12, 'Ideal for browsing and email.'),
|
||||||
|
('Family Streamer', 50, 69.99, 12, 'Perfect for streaming HD video on multiple devices.'),
|
||||||
|
('Super Fast Gamer', 100, 89.99, 24, 'Low latency for the ultimate gaming experience.'),
|
||||||
|
('Power User', 250, 109.99, 24, 'For heavy-duty usage, 4K streaming, and large downloads.');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user