Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

02_webtest.sql 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. --
  2. -- Name: pk_bigserial; Type: TABLE; Schema: public; ; Tablespace:
  3. --
  4. CREATE TABLE pk_bigserial (
  5. id bigint NOT NULL,
  6. some_text character varying,
  7. some_int integer,
  8. created_at timestamp with time zone DEFAULT now() NOT NULL,
  9. updated_at timestamp with time zone
  10. );
  11. --
  12. -- Name: pk_bigserial_id_seq; Type: SEQUENCE; Schema: public;
  13. --
  14. CREATE SEQUENCE pk_bigserial_id_seq
  15. START WITH 1
  16. INCREMENT BY 1
  17. NO MINVALUE
  18. NO MAXVALUE
  19. CACHE 1;
  20. --
  21. -- Name: pk_bigserial_id_seq; Type: SEQUENCE OWNED BY; Schema: public;
  22. --
  23. ALTER SEQUENCE pk_bigserial_id_seq OWNED BY pk_bigserial.id;
  24. --
  25. -- Name: pk_guid; Type: TABLE; Schema: public; ; Tablespace:
  26. --
  27. CREATE TABLE pk_guid (
  28. id uuid DEFAULT get_uuid() NOT NULL,
  29. some_text character varying,
  30. some_int integer,
  31. created_at timestamp with time zone DEFAULT now() NOT NULL,
  32. updated_at timestamp with time zone
  33. );
  34. --
  35. -- Name: id; Type: DEFAULT; Schema: public;
  36. --
  37. ALTER TABLE ONLY pk_bigserial ALTER COLUMN id SET DEFAULT nextval('pk_bigserial_id_seq'::regclass);
  38. --
  39. -- Name: pk_bigserial_pkey; Type: CONSTRAINT; Schema: public; ; Tablespace:
  40. --
  41. ALTER TABLE ONLY pk_bigserial
  42. ADD CONSTRAINT pk_bigserial_pkey PRIMARY KEY (id);
  43. --
  44. -- Name: pk_bigserial_some_text_key; Type: CONSTRAINT; Schema: public; ; Tablespace:
  45. --
  46. ALTER TABLE ONLY pk_bigserial
  47. ADD CONSTRAINT pk_bigserial_some_text_key UNIQUE (some_text);
  48. --
  49. -- Name: pk_guid_pkey; Type: CONSTRAINT; Schema: public; ; Tablespace:
  50. --
  51. ALTER TABLE ONLY pk_guid
  52. ADD CONSTRAINT pk_guid_pkey PRIMARY KEY (id);
  53. --
  54. -- Name: pk_guid_some_text_key; Type: CONSTRAINT; Schema: public; ; Tablespace:
  55. --
  56. ALTER TABLE ONLY pk_guid
  57. ADD CONSTRAINT pk_guid_some_text_key UNIQUE (some_text);
  58. --
  59. -- Name: pk_bigserial_lu_on_row_delete; Type: TRIGGER; Schema: public;
  60. --
  61. CREATE TRIGGER pk_bigserial_lu_on_row_delete BEFORE DELETE ON pk_bigserial FOR EACH ROW EXECUTE PROCEDURE lu_on_row_delete();
  62. --
  63. -- Name: pk_bigserial_lu_on_row_update; Type: TRIGGER; Schema: public;
  64. --
  65. CREATE TRIGGER pk_bigserial_lu_on_row_update BEFORE UPDATE ON pk_bigserial FOR EACH ROW EXECUTE PROCEDURE lu_on_row_update();
  66. --
  67. -- Name: pk_guid_lu_on_row_delete; Type: TRIGGER; Schema: public;
  68. --
  69. CREATE TRIGGER pk_guid_lu_on_row_delete BEFORE DELETE ON pk_guid FOR EACH ROW EXECUTE PROCEDURE lu_on_row_delete();
  70. --
  71. -- Name: pk_guid_lu_on_row_update; Type: TRIGGER; Schema: public;
  72. --
  73. CREATE TRIGGER pk_guid_lu_on_row_update BEFORE UPDATE ON pk_guid FOR EACH ROW EXECUTE PROCEDURE lu_on_row_update();
  74. --
  75. -- PostgreSQL database dump complete
  76. --