Files
api-debug/server/init.sql
jason 96bdc292bb Initial commit: API Debug Tool
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-12 04:32:35 +08:00

21 lines
692 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
CREATE DATABASE IF NOT EXISTS api_debug;
USE api_debug;
CREATE TABLE IF NOT EXISTS tenants (
id INT AUTO_INCREMENT PRIMARY KEY,
user_id VARCHAR(50) DEFAULT 'admin', -- 暂时默认为 admin后续可扩展用户系统
name VARCHAR(100) NOT NULL,
type ENUM('旗舰版PP', '旗舰版ATS', '标品ATS', '标品PP', '国际版ATS') NOT NULL,
app_key VARCHAR(100),
app_secret VARCHAR(100),
api_key VARCHAR(100),
ent_code VARCHAR(100),
bu_id VARCHAR(100),
ent_id VARCHAR(100),
private_key TEXT,
public_key TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
);