21 lines
678 B
SQL
21 lines
678 B
SQL
CREATE TABLE public."Demo" (
|
|
id serial NOT NULL,
|
|
global_uuid uuid NOT NULL,
|
|
demo_number integer NOT NULL,
|
|
demo_name character varying(20) default 'Demox' NOT NULL,
|
|
voltage decimal(5, 2) NOT NULL,
|
|
voltage_upper_limit decimal(5, 2) NOT NULL,
|
|
voltage_lower_limit decimal(5, 2) NOT NULL,
|
|
anchor_voltage boolean NOT NULL,
|
|
current decimal(5, 2) NOT NULL,
|
|
current_upper_limit decimal(5, 2) NOT NULL,
|
|
current_lower_limit decimal(5, 2) NOT NULL,
|
|
anchor_current boolean NOT NULL,
|
|
resistance decimal(5, 2) NOT NULL,
|
|
anchor_para_list text NULL
|
|
);
|
|
|
|
ALTER TABLE
|
|
public."Demo"
|
|
ADD
|
|
CONSTRAINT "Demo_pkey" PRIMARY KEY (global_uuid) |