 	(11,	'Noraml NZ-NZ',	'NORMAL',	'NZ',	'FOLLOW',	'FINE',	FALSE,	FALSE,	TRUE,	FALSE,	FALSE,	2.0,	1.0,	0.30,	300,	0,	8,	6,	0.30,	150,	0.77,	2200,	0.40,	0,	180,	0,	800,	FALSE,	400,	10,	0.20,	'FINE',	0.2,	0.00,	9.3,	9.3,	0.3,	0.7,	0,	0.1,	0.1),
 	(12,	'Normal MM-MM',	'NORMAL',	'MM',	'FOLLOW',	'CLAD',	FALSE,	FALSE,	TRUE,	FALSE,	FALSE,	2.0,	1.0,	0.30,	300,	0,	8,	6,	0.30,	150,	0.70,	2200,	0.40,	0,	180,	0,	800,	FALSE,	400,	10,	0.20,	'CLAD',	0.2,	0.00,	50.0,	50.0,	0.3,	0.7,	0,	0.1,	0.1);
 
-
+--	history fs_param
+CREATE TABLE fs_param_history (
+	ets		TIMESTAMPTZ	NOT NULL	DEFAULT CURRENT_TIMESTAMP
+) INHERITS (fs_param);
 
 -- 	fs_param lib
 CREATE TABLE fs_param_lib () INHERITS (fs_param);

	, syn_bend_co	DECIMAL(5,2)	NOT NULL	DEFAULT 0.7
	, opp_bend_co	DECIMAL(5,2)	NOT NULL	DEFAULT 0.3
	, mfd_mis_co	DECIMAL(5,2)	NOT NULL	DEFAULT 0
);

INSERT INTO fs_param (

	, defect_yzr_hangle	DT_ANGLE	NOT NULL
	, defect_yzr_vangle	DT_ANGLE	NOT NULL
	, defect_yzr_clad_dm	DT_LENGTH	NOT NULL
	, defect_yzr_core_dm	DT_LENGTH	NOT NULL

	, defect_xzl_dbmp	INT4		NOT NULL
	, defect_xzl_hangle	DT_ANGLE	NOT NULL
	, defect_xzl_vangle	DT_ANGLE	NOT NULL
	, defect_xzl_clad_dm	DT_LENGTH	NOT NULL
	, defect_xzl_core_dm	DT_LENGTH	NOT NULL

	, defect_xzr_dbmp	INT4		NOT NULL
	, defect_xzr_hangle	DT_ANGLE	NOT NULL
	, defect_xzr_vangle	DT_ANGLE	NOT NULL
	, defect_xzr_clad_dm	DT_LENGTH	NOT NULL
	, defect_xzr_core_dm	DT_LENGTH	NOT NULL

	, defect_yz_hangle	DT_ANGLE	NOT NULL
	, defect_xz_hangle	DT_ANGLE	NOT NULL
