-- [SENSOR_PLACEMENT]
-- 王名豪
-- 2025/04/18
-- 存储测压点的布置方案

CREATE TABLE sensor_placement (
    id SERIAL PRIMARY KEY,
    scheme_name varchar(32) not null,
    sensor_number int,
    min_diameter int,
    username varchar(32) not null REFERENCES "users"(username) ON UPDATE CASCADE ON DELETE RESTRICT,
    create_time TIMESTAMP WITH TIME ZONE not null DEFAULT date_trunc('minute', CURRENT_TIMESTAMP),
    sensor_location TEXT[]
);