Advertisement
Rahmadnet

table

Aug 7th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CREATE TABLE ht_salarycomponent
  2. (
  3.     ht_salarycomponent_id varchar(32) PRIMARY KEY NOT NULL,
  4.     ad_client_id varchar(32) NOT NULL,
  5.     ad_org_id varchar(32) NOT NULL,
  6.     isactive CHARACTER(1) NOT NULL DEFAULT 'Y',
  7.     created timestamp WITHOUT time ZONE NOT NULL DEFAULT now(),
  8.     createdby varchar(32) NOT NULL,
  9.     updated timestamp WITHOUT time ZONE NOT NULL DEFAULT now(),
  10.     updatedby varchar(32) NOT NULL,
  11.     name varchar(60) NOT NULL,
  12.     description varchar(2000),
  13.     isearning CHARACTER(1) NOT NULL DEFAULT 'Y',
  14.     CONSTRAINT ht_salarycomponent_ad_org FOREIGN KEY (ad_org_id)
  15.     REFERENCES ad_org (ad_org_id),
  16.     CONSTRAINT ht_salarycomponent_ad_client FOREIGN KEY (ad_client_id)
  17.     REFERENCES ad_client(ad_client_id),
  18.     CONSTRAINT ht_salarycomponent_check CHECK (isactive = ANY (ARRAY ['Y'::bpchar, 'N'::bpchar])),
  19.     CONSTRAINT ht_salarycomponent_isearning_check CHECK (isearning = ANY (ARRAY['Y'::bpchar, 'N'::bpchar]))
  20. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement