Files
orris/internal/infrastructure/migration/scripts/054_add_anytls_configs.sql
orris-inc e33acff06a feat: add AnyTLS protocol support across all layers
Implement end-to-end AnyTLS protocol support including domain value
objects, repository persistence, use case handling, subscription
formatting (Base64/Clash/Surge), and HTTP handler bindings. Add
migration script for the anytls_configs table and wire protocol-specific
config loading in parallel with existing protocols.

Also add PlanType filter to plan repository list query.
2026-02-11 18:30:46 +08:00

20 lines
774 B
SQL

-- +goose Up
CREATE TABLE node_anytls_configs (
id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
node_id BIGINT UNSIGNED NOT NULL,
sni VARCHAR(255),
allow_insecure TINYINT(1) NOT NULL DEFAULT 1,
fingerprint VARCHAR(100),
idle_session_check_interval VARCHAR(20),
idle_session_timeout VARCHAR(20),
min_idle_session INT NOT NULL DEFAULT 0,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
deleted_at TIMESTAMP NULL,
UNIQUE INDEX idx_node_anytls_configs_node_id (node_id),
INDEX idx_node_anytls_configs_deleted_at (deleted_at)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- +goose Down
DROP TABLE IF EXISTS node_anytls_configs;