andari3107

table salarycomponent

Sep 5th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. create table ht_salarycomponent(
  2.  
  3. ht_salarycomponent_id varchar(32) 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. first_name varchar(32) not null,
  12. last_name varchar(32) not null,
  13. description varchar(2000) null,
  14. isearning character(1) not null default 'Y',
  15. constraint ht_sc_isactive_check check (isactive = any (array['Y' ::bpchar, 'N'::bpchar])),
  16. constraint ht_sc_key primary key (ht_salarycomponent_id),
  17. constraint ht_sc_ad_org foreign key (ad_org_id) references ad_org (ad_org_id),
  18. constraint ht_sc_ad_client foreign key (ad_client_id) references ad_client (ad_client_id),
  19. constraint ht_sc_isearning_check check (isearning = any (array['Y'::bpchar, 'N'::bpchar]))
  20. );
Advertisement
Add Comment
Please, Sign In to add comment