Guest User

company table and indexes

a guest
Apr 2nd, 2013
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. CREATE TABLE company
  2. (
  3. id integer NOT NULL,
  4. name character varying(100) DEFAULT NULL::character varying,
  5. bill_note text,
  6. customer_code character varying(15) DEFAULT NULL::character varying,
  7. search tsvector, -- (DC2Type:tsvector)
  8. bad_standing boolean,
  9. bad_standing_reason text,
  10. CONSTRAINT company_pkey PRIMARY KEY (id )
  11. )
  12. WITH (
  13. OIDS=FALSE
  14. );
  15. ALTER TABLE company
  16. OWNER TO sd4;
  17. COMMENT ON COLUMN company.search IS '(DC2Type:tsvector)';
  18.  
  19.  
  20. -- Index: idx_4fbf094f238494ef
  21.  
  22. -- DROP INDEX idx_4fbf094f238494ef;
  23.  
  24. CREATE INDEX idx_4fbf094f238494ef
  25. ON company
  26. USING btree
  27. (customer_code COLLATE pg_catalog."default" );
  28.  
  29. -- Index: idx_4fbf094f5e237e06
  30.  
  31. -- DROP INDEX idx_4fbf094f5e237e06;
  32.  
  33. CREATE INDEX idx_4fbf094f5e237e06
  34. ON company
  35. USING btree
  36. (name COLLATE pg_catalog."default" );
Advertisement
Add Comment
Please, Sign In to add comment