部署
This commit is contained in:
parent
a32842e568
commit
10d64285e3
@ -10,7 +10,7 @@ $settings = [];
|
|||||||
while ($row = $stmt->fetch()) {
|
while ($row = $stmt->fetch()) {
|
||||||
$settings[$row['key']] = $row['value'];
|
$settings[$row['key']] = $row['value'];
|
||||||
}
|
}
|
||||||
$site_logo = $settings['site_logo'] ?? 'assets/images/logo.png';
|
$site_logo = $settings['site_logo'] ?? 'assets/pasted-20260226-073317-a8105f30.png';
|
||||||
$site_name = $settings['site_name'] ?? '智域科技';
|
$site_name = $settings['site_name'] ?? '智域科技';
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|||||||
@ -1,3 +1,16 @@
|
|||||||
|
-- Combined Database Schema
|
||||||
|
-- Generated: 2026-03-18
|
||||||
|
|
||||||
|
-- Leads
|
||||||
|
CREATE TABLE IF NOT EXISTS leads (
|
||||||
|
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
name VARCHAR(255) NOT NULL,
|
||||||
|
email VARCHAR(255) NOT NULL,
|
||||||
|
phone VARCHAR(50),
|
||||||
|
message TEXT,
|
||||||
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||||
|
);
|
||||||
|
|
||||||
-- Admin Users
|
-- Admin Users
|
||||||
CREATE TABLE IF NOT EXISTS admin_users (
|
CREATE TABLE IF NOT EXISTS admin_users (
|
||||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||||
@ -15,11 +28,11 @@ CREATE TABLE IF NOT EXISTS website_settings (
|
|||||||
`key` VARCHAR(50) PRIMARY KEY,
|
`key` VARCHAR(50) PRIMARY KEY,
|
||||||
`value` TEXT,
|
`value` TEXT,
|
||||||
`label` VARCHAR(100),
|
`label` VARCHAR(100),
|
||||||
`type` VARCHAR(20) DEFAULT 'text', -- text, textarea, image, file
|
`type` VARCHAR(20) DEFAULT 'text',
|
||||||
`group` VARCHAR(20) DEFAULT 'general' -- general, contact, seo, footer
|
`group` VARCHAR(20) DEFAULT 'general'
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Cases (Reputation Works)
|
-- Cases
|
||||||
CREATE TABLE IF NOT EXISTS cases (
|
CREATE TABLE IF NOT EXISTS cases (
|
||||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||||
slug VARCHAR(100) NOT NULL UNIQUE,
|
slug VARCHAR(100) NOT NULL UNIQUE,
|
||||||
@ -41,7 +54,7 @@ CREATE TABLE IF NOT EXISTS cases (
|
|||||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Services (Core Capabilities)
|
-- Services
|
||||||
CREATE TABLE IF NOT EXISTS services (
|
CREATE TABLE IF NOT EXISTS services (
|
||||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||||
title VARCHAR(255) NOT NULL,
|
title VARCHAR(255) NOT NULL,
|
||||||
@ -52,7 +65,7 @@ CREATE TABLE IF NOT EXISTS services (
|
|||||||
is_visible BOOLEAN DEFAULT TRUE
|
is_visible BOOLEAN DEFAULT TRUE
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Technical Foundation
|
-- Tech Stack
|
||||||
CREATE TABLE IF NOT EXISTS tech_stack (
|
CREATE TABLE IF NOT EXISTS tech_stack (
|
||||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||||
category VARCHAR(100),
|
category VARCHAR(100),
|
||||||
@ -62,17 +75,17 @@ CREATE TABLE IF NOT EXISTS tech_stack (
|
|||||||
sort_order INT DEFAULT 0
|
sort_order INT DEFAULT 0
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Pricing Solutions
|
-- Pricing
|
||||||
CREATE TABLE IF NOT EXISTS pricing_plans (
|
CREATE TABLE IF NOT EXISTS pricing_plans (
|
||||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||||
name VARCHAR(255) NOT NULL,
|
name VARCHAR(255) NOT NULL,
|
||||||
price_range VARCHAR(100),
|
price_range VARCHAR(100),
|
||||||
features TEXT, -- JSON or newline separated
|
features TEXT,
|
||||||
is_featured BOOLEAN DEFAULT FALSE,
|
is_featured BOOLEAN DEFAULT FALSE,
|
||||||
sort_order INT DEFAULT 0
|
sort_order INT DEFAULT 0
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Transformation Practices
|
-- Transformations
|
||||||
CREATE TABLE IF NOT EXISTS transformations (
|
CREATE TABLE IF NOT EXISTS transformations (
|
||||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||||
title VARCHAR(255) NOT NULL,
|
title VARCHAR(255) NOT NULL,
|
||||||
@ -83,13 +96,12 @@ CREATE TABLE IF NOT EXISTS transformations (
|
|||||||
sort_order INT DEFAULT 0
|
sort_order INT DEFAULT 0
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Insert Default Admin (password: admin123)
|
-- Default Data
|
||||||
INSERT INTO admin_users (username, password, nickname) VALUES ('admin', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', '系统管理员');
|
INSERT IGNORE INTO admin_users (username, password, nickname) VALUES ('admin', '$2y$10$jHk/K4irYNwTB99K8hKSTeOcHEij/VFPzmPJq.X7DIoKXs5XzwhRS', '系统管理员');
|
||||||
|
|
||||||
-- Insert Initial Settings
|
INSERT IGNORE INTO website_settings (`key`, `value`, `label`, `type`, `group`) VALUES
|
||||||
INSERT INTO website_settings (`key`, `value`, `label`, `type`, `group`) VALUES
|
|
||||||
('site_name', '智域科技', '网站名称', 'text', 'general'),
|
('site_name', '智域科技', '网站名称', 'text', 'general'),
|
||||||
('site_logo', 'assets/images/logo.png', '网站LOGO', 'image', 'general'),
|
('site_logo', 'assets/pasted-20260226-073317-a8105f30.png', '网站LOGO', 'image', 'general'),
|
||||||
('wechat_id', 'zhiyukj888', '微信号', 'text', 'contact'),
|
('wechat_id', 'zhiyukj888', '微信号', 'text', 'contact'),
|
||||||
('wechat_qr', 'assets/images/qr.png', '微信二维码', 'image', 'contact'),
|
('wechat_qr', 'assets/images/qr.png', '微信二维码', 'image', 'contact'),
|
||||||
('tg_link', 'https://t.me/zhiyukj', 'Telegram链接', 'text', 'contact'),
|
('tg_link', 'https://t.me/zhiyukj', 'Telegram链接', 'text', 'contact'),
|
||||||
@ -1,8 +0,0 @@
|
|||||||
CREATE TABLE IF NOT EXISTS leads (
|
|
||||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
|
||||||
name VARCHAR(255) NOT NULL,
|
|
||||||
email VARCHAR(255) NOT NULL,
|
|
||||||
phone VARCHAR(50),
|
|
||||||
message TEXT,
|
|
||||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
|
||||||
);
|
|
||||||
Loading…
x
Reference in New Issue
Block a user