-- 創建 jobs_data 表格
CREATE TABLE spwte.jobs_data (
id INT PRIMARY KEY AUTO_INCREMENT,
job_name VARCHAR(255) NOT NULL,
job_description TEXT,
salary INT DEFAULT 0,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
-- 創建 jobs_garages 表格
CREATE TABLE spwte.jobs_garages (
id INT PRIMARY KEY AUTO_INCREMENT,
garage_name VARCHAR(255) NOT NULL,
location VARCHAR(255),
capacity INT DEFAULT 0,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
-- 創建 jobs_armories 表格
CREATE TABLE spwte.jobs_armories (
id INT PRIMARY KEY AUTO_INCREMENT,
armory_name VARCHAR(255) NOT NULL,
location VARCHAR(255),
weapons_list TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
-- 創建 jobs_shops 表格
CREATE TABLE spwte.jobs_shops (
id INT PRIMARY KEY AUTO_INCREMENT,
shop_name VARCHAR(255) NOT NULL,
location VARCHAR(255),
items_list TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
-- 創建 jobs_wardrobes 表格
CREATE TABLE spwte.jobs_wardrobes (
id INT PRIMARY KEY AUTO_INCREMENT,
wardrobe_name VARCHAR(255) NOT NULL,
location VARCHAR(255),
outfits_list TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
-- 創建 used_vehicles 表格
CREATE TABLE spwte.used_vehicles (
id INT PRIMARY KEY AUTO_INCREMENT,
vehicle_model VARCHAR(255) NOT NULL,
owner_name VARCHAR(255),
price INT,
status VARCHAR(50) DEFAULT 'available',
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
-- 創建 safe_zones 表格
CREATE TABLE spwte.safe_zones (
id INT PRIMARY KEY AUTO_INCREMENT,
zone_name VARCHAR(255) NOT NULL,
location VARCHAR(255),
radius FLOAT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);