분리후 첫 Crawling 성공 모델
This commit is contained in:
19
OpcPksPlatform/Documents/init.sql
Normal file
19
OpcPksPlatform/Documents/init.sql
Normal file
@@ -0,0 +1,19 @@
|
||||
-- 1. 마스터 정보 (메타데이터)
|
||||
CREATE TABLE tag_master (
|
||||
id SERIAL PRIMARY KEY,
|
||||
server_name TEXT,
|
||||
area_code TEXT,
|
||||
tag_name TEXT,
|
||||
parameter TEXT,
|
||||
full_node_id TEXT UNIQUE,
|
||||
data_type TEXT,
|
||||
is_active BOOLEAN DEFAULT TRUE
|
||||
);
|
||||
|
||||
-- 2. 실시간 최신값 (Update-only)
|
||||
CREATE TABLE tag_live_data (
|
||||
full_node_id TEXT PRIMARY KEY REFERENCES tag_master(full_node_id),
|
||||
live_value TEXT,
|
||||
quality TEXT,
|
||||
last_updated TIMESTAMP DEFAULT NOW()
|
||||
);
|
||||
8166
OpcPksPlatform/Documents/프로젝트대화.md
Normal file
8166
OpcPksPlatform/Documents/프로젝트대화.md
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user