feat: Add SHZ log inspection and HighGo database querying capabilities
- Introduced `inspect-shz-logs` skill for inspecting local and production logs with bounded read-only commands. - Added `view.sh` script for log viewing with options for following logs and filtering by keywords. - Created `query-shz-highgo` skill for querying the SHZ HighGo database through an SSH gateway. - Implemented read-only SQL execution with strict controls on allowed statements and query structure. - Added new domain and mapper classes for managing outdoor fair job associations. - Enhanced `OutdoorFairController` to support job listing and management for outdoor fairs. - Created SQL scripts for initializing outdoor fair job data and managing menu visibility.
This commit is contained in:
23
sql/cms_outdoor_fair_job.sql
Normal file
23
sql/cms_outdoor_fair_job.sql
Normal file
@@ -0,0 +1,23 @@
|
||||
CREATE SEQUENCE IF NOT EXISTS shz.cms_outdoor_fair_job_id_seq
|
||||
START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS shz.cms_outdoor_fair_job (
|
||||
id BIGINT NOT NULL DEFAULT nextval('shz.cms_outdoor_fair_job_id_seq'::regclass) PRIMARY KEY,
|
||||
fair_id BIGINT NOT NULL,
|
||||
company_id BIGINT NOT NULL,
|
||||
job_id BIGINT NOT NULL,
|
||||
create_by VARCHAR(64),
|
||||
create_time TIMESTAMP,
|
||||
update_by VARCHAR(64),
|
||||
update_time TIMESTAMP,
|
||||
remark VARCHAR(500),
|
||||
del_flag CHAR(1) DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS uk_cms_outdoor_fair_job
|
||||
ON shz.cms_outdoor_fair_job (fair_id, job_id);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_cms_outdoor_fair_job_company
|
||||
ON shz.cms_outdoor_fair_job (fair_id, company_id);
|
||||
|
||||
COMMENT ON TABLE shz.cms_outdoor_fair_job IS '户外招聘会岗位关联表';
|
||||
Reference in New Issue
Block a user