Advertisement
Morpheu5

Untitled

Jul 12th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CREATE TABLE public.organizations
  2. (
  3.     id bigint DEFAULT nextval('organizations_id_seq'::regclass) PRIMARY KEY NOT NULL,
  4.     name varchar,
  5.     parent_id bigint,
  6.     created_at timestamp NOT NULL,
  7.     updated_at timestamp NOT NULL,
  8.     CONSTRAINT fk_rails_6551137b98 FOREIGN KEY (parent_id) REFERENCES public.organizations (id)
  9. );
  10. CREATE INDEX index_organizations_on_name ON public.organizations (name);
  11. CREATE INDEX index_organizations_on_parent_id ON public.organizations (parent_id);
  12. INSERT INTO public.organizations (id, name, parent_id, created_at, updated_at) VALUES (2, 'UniJobs', null, '2018-07-11 11:01:14.620812', '2018-07-11 11:01:14.620812');
  13. INSERT INTO public.organizations (id, name, parent_id, created_at, updated_at) VALUES (5, 'Dipartimento di Ingegneria dell''Informazione (DEI)', 3, '2018-07-11 11:02:51.633415', '2018-07-11 11:02:51.633415');
  14. INSERT INTO public.organizations (id, name, parent_id, created_at, updated_at) VALUES (6, 'Dipartimento di Lettere', 3, '2018-07-11 11:03:49.121644', '2018-07-11 11:03:49.121644');
  15. INSERT INTO public.organizations (id, name, parent_id, created_at, updated_at) VALUES (7, 'Dipartimento di Ingegneria dell''Informazione (DEI)', 4, '2018-07-11 11:05:05.515510', '2018-07-11 11:05:05.515510');
  16. INSERT INTO public.organizations (id, name, parent_id, created_at, updated_at) VALUES (8, 'Dipartimento di Lettere', 4, '2018-07-11 11:05:09.874536', '2018-07-11 11:05:09.874536');
  17. INSERT INTO public.organizations (id, name, parent_id, created_at, updated_at) VALUES (10, 'MIUR', null, '2018-07-11 19:02:42.295810', '2018-07-11 19:02:42.295810');
  18. INSERT INTO public.organizations (id, name, parent_id, created_at, updated_at) VALUES (3, 'Università di Padova', 10, '2018-07-11 11:01:41.342253', '2018-07-11 19:03:05.011372');
  19. INSERT INTO public.organizations (id, name, parent_id, created_at, updated_at) VALUES (4, 'Università di Milano', 10, '2018-07-11 11:02:02.645950', '2018-07-11 11:02:02.645950');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement