GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — webtrees/webtrees-postgres.sql at webtrees-2.2 · H2CK/webtrees Expand file tree/ Copy pathwebtrees-postgres.sqlMore file actions 2327 lines (1557 loc) · 67.8 KB / Copy pathwebtrees-postgres.sqlFile metadata and controls2327 lines (1557 loc) · 67.8 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 -- -- Webtrees PostgreSQL Schema -- Generated by dumping from webtrees 2.2.4 -- CREATE DATABASE "<DB_NAME>" WITH ENCODING 'UTF8'; \c "<DB_NAME>" -- -- PostgreSQL database dump -- -- Dumped from database version 18.1 (Debian 18.1-1.pgdg13+2) -- Dumped by pg_dump version 18.1 (Debian 18.1-1.pgdg13+2) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET transaction_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_security = off; ALTER TABLE IF EXISTS ONLY public.wt_user_setting DROP CONSTRAINT IF EXISTS wt_user_setting_user_id_foreign; ALTER TABLE IF EXISTS ONLY public.wt_user_gedcom_setting DROP CONSTRAINT IF EXISTS wt_user_gedcom_setting_user_id_foreign; ALTER TABLE IF EXISTS ONLY public.wt_user_gedcom_setting DROP CONSTRAINT IF EXISTS wt_user_gedcom_setting_gedcom_id_foreign; ALTER TABLE IF EXISTS ONLY public.wt_place_location DROP CONSTRAINT IF EXISTS wt_place_location_parent_id_foreign; ALTER TABLE IF EXISTS ONLY public.wt_news DROP CONSTRAINT IF EXISTS wt_news_user_id_foreign; ALTER TABLE IF EXISTS ONLY public.wt_news DROP CONSTRAINT IF EXISTS wt_news_gedcom_id_foreign; ALTER TABLE IF EXISTS ONLY public.wt_module_setting DROP CONSTRAINT IF EXISTS wt_module_setting_module_name_foreign; ALTER TABLE IF EXISTS ONLY public.wt_module_privacy DROP CONSTRAINT IF EXISTS wt_module_privacy_module_name_foreign; ALTER TABLE IF EXISTS ONLY public.wt_module_privacy DROP CONSTRAINT IF EXISTS wt_module_privacy_gedcom_id_foreign; ALTER TABLE IF EXISTS ONLY public.wt_message DROP CONSTRAINT IF EXISTS wt_message_user_id_foreign; ALTER TABLE IF EXISTS ONLY public.wt_log DROP CONSTRAINT IF EXISTS wt_log_user_id_foreign; ALTER TABLE IF EXISTS ONLY public.wt_log DROP CONSTRAINT IF EXISTS wt_log_gedcom_id_foreign; ALTER TABLE IF EXISTS ONLY public.wt_hit_counter DROP CONSTRAINT IF EXISTS wt_hit_counter_gedcom_id_foreign; ALTER TABLE IF EXISTS ONLY public.wt_gedcom_setting DROP CONSTRAINT IF EXISTS wt_gedcom_setting_gedcom_id_foreign; ALTER TABLE IF EXISTS ONLY public.wt_gedcom_chunk DROP CONSTRAINT IF EXISTS wt_gedcom_chunk_gedcom_id_foreign; ALTER TABLE IF EXISTS ONLY public.wt_favorite DROP CONSTRAINT IF EXISTS wt_favorite_user_id_foreign; ALTER TABLE IF EXISTS ONLY public.wt_favorite DROP CONSTRAINT IF EXISTS wt_favorite_gedcom_id_foreign; ALTER TABLE IF EXISTS ONLY public.wt_default_resn DROP CONSTRAINT IF EXISTS wt_default_resn_gedcom_id_foreign; ALTER TABLE IF EXISTS ONLY public.wt_change DROP CONSTRAINT IF EXISTS wt_change_user_id_foreign; ALTER TABLE IF EXISTS ONLY public.wt_change DROP CONSTRAINT IF EXISTS wt_change_gedcom_id_foreign; ALTER TABLE IF EXISTS ONLY public.wt_block DROP CONSTRAINT IF EXISTS wt_block_user_id_foreign; ALTER TABLE IF EXISTS ONLY public.wt_block_setting DROP CONSTRAINT IF EXISTS wt_block_setting_block_id_foreign; ALTER TABLE IF EXISTS ONLY public.wt_block DROP CONSTRAINT IF EXISTS wt_block_module_name_foreign; ALTER TABLE IF EXISTS ONLY public.wt_block DROP CONSTRAINT IF EXISTS wt_block_gedcom_id_foreign; DROP INDEX IF EXISTS public.wt_user_gedcom_setting_gedcom_id_index; DROP INDEX IF EXISTS public.wt_sources_s_name_index; DROP INDEX IF EXISTS public.wt_session_user_id_ip_address_index; DROP INDEX IF EXISTS public.wt_session_session_time_index; DROP INDEX IF EXISTS public.wt_places_p_file_p_place_index; DROP INDEX IF EXISTS public.wt_placelinks_pl_p_id_index; DROP INDEX IF EXISTS public.wt_placelinks_pl_gid_index; DROP INDEX IF EXISTS public.wt_placelinks_pl_file_index; DROP INDEX IF EXISTS public.wt_place_location_longitude_index; DROP INDEX IF EXISTS public.wt_place_location_latitude_index; DROP INDEX IF EXISTS public.wt_news_user_id_updated_index; DROP INDEX IF EXISTS public.wt_news_gedcom_id_updated_index; DROP INDEX IF EXISTS public.wt_name_n_surn_n_file_n_type_n_id_index; DROP INDEX IF EXISTS public.wt_name_n_givn_n_file_n_type_n_id_index; DROP INDEX IF EXISTS public.wt_name_n_full_n_id_n_file_index; DROP INDEX IF EXISTS public.wt_message_user_id_index; DROP INDEX IF EXISTS public.wt_media_file_m_id_m_file_index; DROP INDEX IF EXISTS public.wt_media_file_m_file_source_media_type_index; DROP INDEX IF EXISTS public.wt_media_file_m_file_multimedia_format_index; DROP INDEX IF EXISTS public.wt_media_file_m_file_multimedia_file_refn_index; DROP INDEX IF EXISTS public.wt_media_file_m_file_m_id_index; DROP INDEX IF EXISTS public.wt_media_file_m_file_descriptive_title_index; DROP INDEX IF EXISTS public.wt_log_user_id_index; DROP INDEX IF EXISTS public.wt_log_log_type_index; DROP INDEX IF EXISTS public.wt_log_log_time_index; DROP INDEX IF EXISTS public.wt_log_ip_address_index; DROP INDEX IF EXISTS public.wt_log_gedcom_id_index; DROP INDEX IF EXISTS public.wt_gedcom_sort_order_index; DROP INDEX IF EXISTS public.wt_gedcom_chunk_gedcom_id_imported_index; DROP INDEX IF EXISTS public.wt_favorite_user_id_index; DROP INDEX IF EXISTS public.wt_favorite_gedcom_id_user_id_index; DROP INDEX IF EXISTS public.wt_families_f_wife_index; DROP INDEX IF EXISTS public.wt_families_f_husb_index; DROP INDEX IF EXISTS public.wt_dates_d_year_index; DROP INDEX IF EXISTS public.wt_dates_d_type_index; DROP INDEX IF EXISTS public.wt_dates_d_month_index; DROP INDEX IF EXISTS public.wt_dates_d_mon_index; DROP INDEX IF EXISTS public.wt_dates_d_julianday2_index; DROP INDEX IF EXISTS public.wt_dates_d_julianday1_index; DROP INDEX IF EXISTS public.wt_dates_d_gid_index; DROP INDEX IF EXISTS public.wt_dates_d_file_index; DROP INDEX IF EXISTS public.wt_dates_d_fact_d_gid_index; DROP INDEX IF EXISTS public.wt_dates_d_day_index; DROP INDEX IF EXISTS public.wt_change_user_id_index; DROP INDEX IF EXISTS public.wt_change_gedcom_id_status_xref_index; DROP INDEX IF EXISTS public.wt_block_user_id_index; DROP INDEX IF EXISTS public.wt_block_module_name_index; DROP INDEX IF EXISTS public.wt_block_gedcom_id_index; ALTER TABLE IF EXISTS ONLY public.wt_user DROP CONSTRAINT IF EXISTS wt_user_user_name_unique; ALTER TABLE IF EXISTS ONLY public.wt_user_setting DROP CONSTRAINT IF EXISTS wt_user_setting_pkey; ALTER TABLE IF EXISTS ONLY public.wt_user DROP CONSTRAINT IF EXISTS wt_user_pkey; ALTER TABLE IF EXISTS ONLY public.wt_user_gedcom_setting DROP CONSTRAINT IF EXISTS wt_user_gedcom_setting_pkey; ALTER TABLE IF EXISTS ONLY public.wt_user DROP CONSTRAINT IF EXISTS wt_user_email_unique; ALTER TABLE IF EXISTS ONLY public.wt_sources DROP CONSTRAINT IF EXISTS wt_sources_s_file_s_id_unique; ALTER TABLE IF EXISTS ONLY public.wt_sources DROP CONSTRAINT IF EXISTS wt_sources_pkey; ALTER TABLE IF EXISTS ONLY public.wt_site_setting DROP CONSTRAINT IF EXISTS wt_site_setting_pkey; ALTER TABLE IF EXISTS ONLY public.wt_session DROP CONSTRAINT IF EXISTS wt_session_pkey; ALTER TABLE IF EXISTS ONLY public.wt_places DROP CONSTRAINT IF EXISTS wt_places_pkey; ALTER TABLE IF EXISTS ONLY public.wt_places DROP CONSTRAINT IF EXISTS wt_places_p_parent_id_p_file_p_place_unique; ALTER TABLE IF EXISTS ONLY public.wt_placelinks DROP CONSTRAINT IF EXISTS wt_placelinks_pkey; ALTER TABLE IF EXISTS ONLY public.wt_place_location DROP CONSTRAINT IF EXISTS wt_place_location_place_parent_id_unique; ALTER TABLE IF EXISTS ONLY public.wt_place_location DROP CONSTRAINT IF EXISTS wt_place_location_pkey; ALTER TABLE IF EXISTS ONLY public.wt_place_location DROP CONSTRAINT IF EXISTS wt_place_location_parent_id_place_unique; ALTER TABLE IF EXISTS ONLY public.wt_other DROP CONSTRAINT IF EXISTS wt_other_pkey; ALTER TABLE IF EXISTS ONLY public.wt_other DROP CONSTRAINT IF EXISTS wt_other_o_file_o_id_unique; ALTER TABLE IF EXISTS ONLY public.wt_news DROP CONSTRAINT IF EXISTS wt_news_pkey; ALTER TABLE IF EXISTS ONLY public.wt_name DROP CONSTRAINT IF EXISTS wt_name_pkey; ALTER TABLE IF EXISTS ONLY public.wt_module_setting DROP CONSTRAINT IF EXISTS wt_module_setting_pkey; ALTER TABLE IF EXISTS ONLY public.wt_module_privacy DROP CONSTRAINT IF EXISTS wt_module_privacy_pkey; ALTER TABLE IF EXISTS ONLY public.wt_module_privacy DROP CONSTRAINT IF EXISTS wt_module_privacy_ix2; ALTER TABLE IF EXISTS ONLY public.wt_module_privacy DROP CONSTRAINT IF EXISTS wt_module_privacy_ix1; ALTER TABLE IF EXISTS ONLY public.wt_module DROP CONSTRAINT IF EXISTS wt_module_pkey; ALTER TABLE IF EXISTS ONLY public.wt_message DROP CONSTRAINT IF EXISTS wt_message_pkey; ALTER TABLE IF EXISTS ONLY public.wt_media DROP CONSTRAINT IF EXISTS wt_media_pkey; ALTER TABLE IF EXISTS ONLY public.wt_media DROP CONSTRAINT IF EXISTS wt_media_m_id_m_file_unique; ALTER TABLE IF EXISTS ONLY public.wt_media_file DROP CONSTRAINT IF EXISTS wt_media_file_pkey; ALTER TABLE IF EXISTS ONLY public.wt_log DROP CONSTRAINT IF EXISTS wt_log_pkey; ALTER TABLE IF EXISTS ONLY public.wt_link DROP CONSTRAINT IF EXISTS wt_link_pkey; ALTER TABLE IF EXISTS ONLY public.wt_link DROP CONSTRAINT IF EXISTS wt_link_l_to_l_file_l_type_l_from_unique; ALTER TABLE IF EXISTS ONLY public.wt_individuals DROP CONSTRAINT IF EXISTS wt_individuals_pkey; ALTER TABLE IF EXISTS ONLY public.wt_individuals DROP CONSTRAINT IF EXISTS wt_individuals_i_file_i_id_unique; ALTER TABLE IF EXISTS ONLY public.wt_hit_counter DROP CONSTRAINT IF EXISTS wt_hit_counter_pkey; ALTER TABLE IF EXISTS ONLY public.wt_gedcom_setting DROP CONSTRAINT IF EXISTS wt_gedcom_setting_pkey; ALTER TABLE IF EXISTS ONLY public.wt_gedcom DROP CONSTRAINT IF EXISTS wt_gedcom_pkey; ALTER TABLE IF EXISTS ONLY public.wt_gedcom DROP CONSTRAINT IF EXISTS wt_gedcom_gedcom_name_unique; ALTER TABLE IF EXISTS ONLY public.wt_gedcom_chunk DROP CONSTRAINT IF EXISTS wt_gedcom_chunk_pkey; ALTER TABLE IF EXISTS ONLY public.wt_favorite DROP CONSTRAINT IF EXISTS wt_favorite_pkey; ALTER TABLE IF EXISTS ONLY public.wt_families DROP CONSTRAINT IF EXISTS wt_families_pkey; ALTER TABLE IF EXISTS ONLY public.wt_families DROP CONSTRAINT IF EXISTS wt_families_f_file_f_id_unique; ALTER TABLE IF EXISTS ONLY public.wt_default_resn DROP CONSTRAINT IF EXISTS wt_default_resn_pkey; ALTER TABLE IF EXISTS ONLY public.wt_default_resn DROP CONSTRAINT IF EXISTS wt_default_resn_gedcom_id_xref_tag_type_unique; ALTER TABLE IF EXISTS ONLY public.wt_change DROP CONSTRAINT IF EXISTS wt_change_pkey; ALTER TABLE IF EXISTS ONLY public.wt_block_setting DROP CONSTRAINT IF EXISTS wt_block_setting_pkey; ALTER TABLE IF EXISTS ONLY public.wt_block DROP CONSTRAINT IF EXISTS wt_block_pkey; ALTER TABLE IF EXISTS public.wt_user ALTER COLUMN user_id DROP DEFAULT; ALTER TABLE IF EXISTS public.wt_places ALTER COLUMN p_id DROP DEFAULT; ALTER TABLE IF EXISTS public.wt_place_location ALTER COLUMN id DROP DEFAULT; ALTER TABLE IF EXISTS public.wt_news ALTER COLUMN news_id DROP DEFAULT; ALTER TABLE IF EXISTS public.wt_module_privacy ALTER COLUMN id DROP DEFAULT; ALTER TABLE IF EXISTS public.wt_message ALTER COLUMN message_id DROP DEFAULT; ALTER TABLE IF EXISTS public.wt_media_file ALTER COLUMN id DROP DEFAULT; ALTER TABLE IF EXISTS public.wt_log ALTER COLUMN log_id DROP DEFAULT; ALTER TABLE IF EXISTS public.wt_gedcom_chunk ALTER COLUMN gedcom_chunk_id DROP DEFAULT; ALTER TABLE IF EXISTS public.wt_gedcom ALTER COLUMN gedcom_id DROP DEFAULT; ALTER TABLE IF EXISTS public.wt_favorite ALTER COLUMN favorite_id DROP DEFAULT; ALTER TABLE IF EXISTS public.wt_default_resn ALTER COLUMN default_resn_id DROP DEFAULT; ALTER TABLE IF EXISTS public.wt_change ALTER COLUMN change_id DROP DEFAULT; ALTER TABLE IF EXISTS public.wt_block ALTER COLUMN block_id DROP DEFAULT; DROP SEQUENCE IF EXISTS public.wt_user_user_id_seq; DROP TABLE IF EXISTS public.wt_user_setting; DROP TABLE IF EXISTS public.wt_user_gedcom_setting; DROP TABLE IF EXISTS public.wt_user; DROP TABLE IF EXISTS public.wt_sources; DROP TABLE IF EXISTS public.wt_site_setting; DROP TABLE IF EXISTS public.wt_session; DROP SEQUENCE IF EXISTS public.wt_places_p_id_seq; DROP TABLE IF EXISTS public.wt_places; DROP TABLE IF EXISTS public.wt_placelinks; DROP SEQUENCE IF EXISTS public.wt_place_location_id_seq; DROP TABLE IF EXISTS public.wt_place_location; DROP TABLE IF EXISTS public.wt_other; DROP SEQUENCE IF EXISTS public.wt_news_news_id_seq; DROP TABLE IF EXISTS public.wt_news; DROP TABLE IF EXISTS public.wt_name; DROP TABLE IF EXISTS public.wt_module_setting; DROP SEQUENCE IF EXISTS public.wt_module_privacy_id_seq; DROP TABLE IF EXISTS public.wt_module_privacy; DROP TABLE IF EXISTS public.wt_module; DROP SEQUENCE IF EXISTS public.wt_message_message_id_seq; DROP TABLE IF EXISTS public.wt_message; DROP SEQUENCE IF EXISTS public.wt_media_file_id_seq; DROP TABLE IF EXISTS public.wt_media_file; DROP TABLE IF EXISTS public.wt_media; DROP SEQUENCE IF EXISTS public.wt_log_log_id_seq; DROP TABLE IF EXISTS public.wt_log; DROP TABLE IF EXISTS public.wt_link; DROP TABLE IF EXISTS public.wt_individuals; DROP TABLE IF EXISTS public.wt_hit_counter; DROP TABLE IF EXISTS public.wt_gedcom_setting; DROP SEQUENCE IF EXISTS public.wt_gedcom_gedcom_id_seq; DROP SEQUENCE IF EXISTS public.wt_gedcom_chunk_gedcom_chunk_id_seq; DROP TABLE IF EXISTS public.wt_gedcom_chunk; DROP TABLE IF EXISTS public.wt_gedcom; DROP SEQUENCE IF EXISTS public.wt_favorite_favorite_id_seq; DROP TABLE IF EXISTS public.wt_favorite; DROP TABLE IF EXISTS public.wt_families; DROP SEQUENCE IF EXISTS public.wt_default_resn_default_resn_id_seq; DROP TABLE IF EXISTS public.wt_default_resn; DROP TABLE IF EXISTS public.wt_dates; DROP SEQUENCE IF EXISTS public.wt_change_change_id_seq; DROP TABLE IF EXISTS public.wt_change; DROP TABLE IF EXISTS public.wt_block_setting; DROP SEQUENCE IF EXISTS public.wt_block_block_id_seq; DROP TABLE IF EXISTS public.wt_block; SET default_tablespace = ''; SET default_table_access_method = heap; -- -- Name: wt_block; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_block ( block_id integer NOT NULL, gedcom_id integer, user_id integer, xref character varying(20), location character varying(255), block_order integer NOT NULL, module_name character varying(32) NOT NULL, CONSTRAINT wt_block_location_check CHECK (((location)::text = ANY (ARRAY[('main'::character varying)::text, ('side'::character varying)::text]))) ); ALTER TABLE public.wt_block OWNER TO webtrees; -- -- Name: wt_block_block_id_seq; Type: SEQUENCE; Schema: public; Owner: webtrees -- CREATE SEQUENCE public.wt_block_block_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER SEQUENCE public.wt_block_block_id_seq OWNER TO webtrees; -- -- Name: wt_block_block_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: webtrees -- ALTER SEQUENCE public.wt_block_block_id_seq OWNED BY public.wt_block.block_id; -- -- Name: wt_block_setting; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_block_setting ( block_id integer NOT NULL, setting_name character varying(32) NOT NULL, setting_value text NOT NULL ); ALTER TABLE public.wt_block_setting OWNER TO webtrees; -- -- Name: wt_change; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_change ( change_id integer NOT NULL, change_time timestamp(0) without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, status character varying(255) DEFAULT 'pending'::character varying NOT NULL, gedcom_id integer NOT NULL, xref character varying(20) NOT NULL, old_gedcom text NOT NULL, new_gedcom text NOT NULL, user_id integer NOT NULL, CONSTRAINT wt_change_status_check CHECK (((status)::text = ANY (ARRAY[('accepted'::character varying)::text, ('pending'::character varying)::text, ('rejected'::character varying)::text]))) ); ALTER TABLE public.wt_change OWNER TO webtrees; -- -- Name: wt_change_change_id_seq; Type: SEQUENCE; Schema: public; Owner: webtrees -- CREATE SEQUENCE public.wt_change_change_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER SEQUENCE public.wt_change_change_id_seq OWNER TO webtrees; -- -- Name: wt_change_change_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: webtrees -- ALTER SEQUENCE public.wt_change_change_id_seq OWNED BY public.wt_change.change_id; -- -- Name: wt_dates; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_dates ( d_day smallint NOT NULL, d_month character(5), d_mon smallint NOT NULL, d_year smallint NOT NULL, d_julianday1 integer NOT NULL, d_julianday2 integer NOT NULL, d_fact character varying(15) NOT NULL, d_gid character varying(20) NOT NULL, d_file integer NOT NULL, d_type character varying(255) NOT NULL, CONSTRAINT wt_dates_d_type_check CHECK (((d_type)::text = ANY (ARRAY[('@#DGREGORIAN@'::character varying)::text, ('@#DJULIAN@'::character varying)::text, ('@#DHEBREW@'::character varying)::text, ('@#DFRENCH R@'::character varying)::text, ('@#DHIJRI@'::character varying)::text, ('@#DROMAN@'::character varying)::text, ('@#DJALALI@'::character varying)::text]))) ); ALTER TABLE public.wt_dates OWNER TO webtrees; -- -- Name: wt_default_resn; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_default_resn ( default_resn_id integer NOT NULL, gedcom_id integer NOT NULL, xref character varying(20), tag_type character varying(15), resn character varying(255) NOT NULL, comment character varying(255), updated timestamp(0) without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, CONSTRAINT wt_default_resn_resn_check CHECK (((resn)::text = ANY (ARRAY[('none'::character varying)::text, ('privacy'::character varying)::text, ('confidential'::character varying)::text, ('hidden'::character varying)::text]))) ); ALTER TABLE public.wt_default_resn OWNER TO webtrees; -- -- Name: wt_default_resn_default_resn_id_seq; Type: SEQUENCE; Schema: public; Owner: webtrees -- CREATE SEQUENCE public.wt_default_resn_default_resn_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER SEQUENCE public.wt_default_resn_default_resn_id_seq OWNER TO webtrees; -- -- Name: wt_default_resn_default_resn_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: webtrees -- ALTER SEQUENCE public.wt_default_resn_default_resn_id_seq OWNED BY public.wt_default_resn.default_resn_id; -- -- Name: wt_families; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_families ( f_id character varying(20) NOT NULL, f_file integer NOT NULL, f_husb character varying(20), f_wife character varying(20), f_gedcom text NOT NULL, f_numchil integer NOT NULL ); ALTER TABLE public.wt_families OWNER TO webtrees; -- -- Name: wt_favorite; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_favorite ( favorite_id integer NOT NULL, user_id integer, gedcom_id integer NOT NULL, xref character varying(20), favorite_type character varying(255) NOT NULL, url character varying(255), title character varying(255), note character varying(1000), CONSTRAINT wt_favorite_favorite_type_check CHECK (((favorite_type)::text = ANY (ARRAY[('INDI'::character varying)::text, ('FAM'::character varying)::text, ('SOUR'::character varying)::text, ('REPO'::character varying)::text, ('OBJE'::character varying)::text, ('NOTE'::character varying)::text, ('URL'::character varying)::text]))) ); ALTER TABLE public.wt_favorite OWNER TO webtrees; -- -- Name: wt_favorite_favorite_id_seq; Type: SEQUENCE; Schema: public; Owner: webtrees -- CREATE SEQUENCE public.wt_favorite_favorite_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER SEQUENCE public.wt_favorite_favorite_id_seq OWNER TO webtrees; -- -- Name: wt_favorite_favorite_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: webtrees -- ALTER SEQUENCE public.wt_favorite_favorite_id_seq OWNED BY public.wt_favorite.favorite_id; -- -- Name: wt_gedcom; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_gedcom ( gedcom_id integer NOT NULL, gedcom_name character varying(255) NOT NULL, sort_order integer DEFAULT 0 NOT NULL ); ALTER TABLE public.wt_gedcom OWNER TO webtrees; -- -- Name: wt_gedcom_chunk; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_gedcom_chunk ( gedcom_chunk_id integer NOT NULL, gedcom_id integer NOT NULL, chunk_data text NOT NULL, imported boolean DEFAULT false NOT NULL ); ALTER TABLE public.wt_gedcom_chunk OWNER TO webtrees; -- -- Name: wt_gedcom_chunk_gedcom_chunk_id_seq; Type: SEQUENCE; Schema: public; Owner: webtrees -- CREATE SEQUENCE public.wt_gedcom_chunk_gedcom_chunk_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER SEQUENCE public.wt_gedcom_chunk_gedcom_chunk_id_seq OWNER TO webtrees; -- -- Name: wt_gedcom_chunk_gedcom_chunk_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: webtrees -- ALTER SEQUENCE public.wt_gedcom_chunk_gedcom_chunk_id_seq OWNED BY public.wt_gedcom_chunk.gedcom_chunk_id; -- -- Name: wt_gedcom_gedcom_id_seq; Type: SEQUENCE; Schema: public; Owner: webtrees -- CREATE SEQUENCE public.wt_gedcom_gedcom_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER SEQUENCE public.wt_gedcom_gedcom_id_seq OWNER TO webtrees; -- -- Name: wt_gedcom_gedcom_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: webtrees -- ALTER SEQUENCE public.wt_gedcom_gedcom_id_seq OWNED BY public.wt_gedcom.gedcom_id; -- -- Name: wt_gedcom_setting; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_gedcom_setting ( gedcom_id integer NOT NULL, setting_name character varying(32) NOT NULL, setting_value character varying(255) NOT NULL ); ALTER TABLE public.wt_gedcom_setting OWNER TO webtrees; -- -- Name: wt_hit_counter; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_hit_counter ( gedcom_id integer NOT NULL, page_name character varying(32) NOT NULL, page_parameter character varying(32) NOT NULL, page_count integer NOT NULL ); ALTER TABLE public.wt_hit_counter OWNER TO webtrees; -- -- Name: wt_individuals; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_individuals ( i_id character varying(20) NOT NULL, i_file integer NOT NULL, i_rin character varying(20) NOT NULL, i_sex character varying(255) NOT NULL, i_gedcom text NOT NULL, CONSTRAINT wt_individuals_i_sex_check CHECK (((i_sex)::text = ANY (ARRAY[('U'::character varying)::text, ('M'::character varying)::text, ('F'::character varying)::text]))) ); ALTER TABLE public.wt_individuals OWNER TO webtrees; -- -- Name: wt_link; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_link ( l_file integer NOT NULL, l_from character varying(20) NOT NULL, l_type character varying(15) NOT NULL, l_to character varying(20) NOT NULL ); ALTER TABLE public.wt_link OWNER TO webtrees; -- -- Name: wt_log; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_log ( log_id integer NOT NULL, log_time timestamp(0) without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, log_type character varying(255) NOT NULL, log_message text NOT NULL, ip_address inet NOT NULL, user_id integer, gedcom_id integer, CONSTRAINT wt_log_log_type_check CHECK (((log_type)::text = ANY (ARRAY[('auth'::character varying)::text, ('config'::character varying)::text, ('debug'::character varying)::text, ('edit'::character varying)::text, ('error'::character varying)::text, ('media'::character varying)::text, ('search'::character varying)::text]))) ); ALTER TABLE public.wt_log OWNER TO webtrees; -- -- Name: wt_log_log_id_seq; Type: SEQUENCE; Schema: public; Owner: webtrees -- CREATE SEQUENCE public.wt_log_log_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER SEQUENCE public.wt_log_log_id_seq OWNER TO webtrees; -- -- Name: wt_log_log_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: webtrees -- ALTER SEQUENCE public.wt_log_log_id_seq OWNED BY public.wt_log.log_id; -- -- Name: wt_media; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_media ( m_id character varying(20) NOT NULL, m_file integer NOT NULL, m_gedcom text ); ALTER TABLE public.wt_media OWNER TO webtrees; -- -- Name: wt_media_file; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_media_file ( id integer NOT NULL, m_id character varying(20) NOT NULL, m_file integer NOT NULL, multimedia_file_refn character varying(248) NOT NULL, multimedia_format character varying(4) NOT NULL, source_media_type character varying(15) NOT NULL, descriptive_title character varying(248) NOT NULL ); ALTER TABLE public.wt_media_file OWNER TO webtrees; -- -- Name: wt_media_file_id_seq; Type: SEQUENCE; Schema: public; Owner: webtrees -- CREATE SEQUENCE public.wt_media_file_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER SEQUENCE public.wt_media_file_id_seq OWNER TO webtrees; -- -- Name: wt_media_file_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: webtrees -- ALTER SEQUENCE public.wt_media_file_id_seq OWNED BY public.wt_media_file.id; -- -- Name: wt_message; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_message ( message_id integer NOT NULL, sender character varying(64) NOT NULL, ip_address inet NOT NULL, user_id integer NOT NULL, subject character varying(255) NOT NULL, body text NOT NULL, created timestamp(0) without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL ); ALTER TABLE public.wt_message OWNER TO webtrees; -- -- Name: wt_message_message_id_seq; Type: SEQUENCE; Schema: public; Owner: webtrees -- CREATE SEQUENCE public.wt_message_message_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER SEQUENCE public.wt_message_message_id_seq OWNER TO webtrees; -- -- Name: wt_message_message_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: webtrees -- ALTER SEQUENCE public.wt_message_message_id_seq OWNED BY public.wt_message.message_id; -- -- Name: wt_module; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_module ( module_name character varying(32) NOT NULL, status character varying(255) DEFAULT 'enabled'::character varying NOT NULL, tab_order integer, menu_order integer, sidebar_order integer, footer_order integer, CONSTRAINT wt_module_status_check CHECK (((status)::text = ANY (ARRAY[('enabled'::character varying)::text, ('disabled'::character varying)::text]))) ); ALTER TABLE public.wt_module OWNER TO webtrees; -- -- Name: wt_module_privacy; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_module_privacy ( id integer NOT NULL, module_name character varying(32) NOT NULL, gedcom_id integer NOT NULL, interface character varying(255) NOT NULL, access_level smallint NOT NULL ); ALTER TABLE public.wt_module_privacy OWNER TO webtrees; -- -- Name: wt_module_privacy_id_seq; Type: SEQUENCE; Schema: public; Owner: webtrees -- CREATE SEQUENCE public.wt_module_privacy_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER SEQUENCE public.wt_module_privacy_id_seq OWNER TO webtrees; -- -- Name: wt_module_privacy_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: webtrees -- ALTER SEQUENCE public.wt_module_privacy_id_seq OWNED BY public.wt_module_privacy.id; -- -- Name: wt_module_setting; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_module_setting ( module_name character varying(32) NOT NULL, setting_name character varying(32) NOT NULL, setting_value text NOT NULL ); ALTER TABLE public.wt_module_setting OWNER TO webtrees; -- -- Name: wt_name; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_name ( n_file integer NOT NULL, n_id character varying(20) NOT NULL, n_num integer NOT NULL, n_type character varying(15) NOT NULL, n_sort character varying(255) NOT NULL, n_full character varying(255) NOT NULL, n_surname character varying(255), n_surn character varying(255), n_givn character varying(255), n_soundex_givn_std character varying(255), n_soundex_surn_std character varying(255), n_soundex_givn_dm character varying(255), n_soundex_surn_dm character varying(255) ); ALTER TABLE public.wt_name OWNER TO webtrees; -- -- Name: wt_news; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_news ( news_id integer NOT NULL, user_id integer, gedcom_id integer, subject character varying(255) NOT NULL, body text NOT NULL, updated timestamp(0) without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL ); ALTER TABLE public.wt_news OWNER TO webtrees; -- -- Name: wt_news_news_id_seq; Type: SEQUENCE; Schema: public; Owner: webtrees -- CREATE SEQUENCE public.wt_news_news_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER SEQUENCE public.wt_news_news_id_seq OWNER TO webtrees; -- -- Name: wt_news_news_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: webtrees -- ALTER SEQUENCE public.wt_news_news_id_seq OWNED BY public.wt_news.news_id; -- -- Name: wt_other; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_other ( o_id character varying(20) NOT NULL, o_file integer NOT NULL, o_type character varying(15) NOT NULL, o_gedcom text NOT NULL ); ALTER TABLE public.wt_other OWNER TO webtrees; -- -- Name: wt_place_location; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_place_location ( id integer NOT NULL, parent_id integer, place character varying(120) NOT NULL, latitude double precision, longitude double precision ); ALTER TABLE public.wt_place_location OWNER TO webtrees; -- -- Name: wt_place_location_id_seq; Type: SEQUENCE; Schema: public; Owner: webtrees -- CREATE SEQUENCE public.wt_place_location_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER SEQUENCE public.wt_place_location_id_seq OWNER TO webtrees; -- -- Name: wt_place_location_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: webtrees -- ALTER SEQUENCE public.wt_place_location_id_seq OWNED BY public.wt_place_location.id; -- -- Name: wt_placelinks; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_placelinks ( pl_p_id integer NOT NULL, pl_gid character varying(20) NOT NULL, pl_file integer NOT NULL ); ALTER TABLE public.wt_placelinks OWNER TO webtrees; -- -- Name: wt_places; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_places ( p_id integer NOT NULL, p_place character varying(150) NOT NULL, p_parent_id integer, p_file integer NOT NULL, p_std_soundex text, p_dm_soundex text ); ALTER TABLE public.wt_places OWNER TO webtrees; -- -- Name: wt_places_p_id_seq; Type: SEQUENCE; Schema: public; Owner: webtrees -- CREATE SEQUENCE public.wt_places_p_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER SEQUENCE public.wt_places_p_id_seq OWNER TO webtrees; -- -- Name: wt_places_p_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: webtrees -- ALTER SEQUENCE public.wt_places_p_id_seq OWNED BY public.wt_places.p_id; -- -- Name: wt_session; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_session ( session_id character varying(256) NOT NULL, session_time timestamp(0) without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, user_id integer NOT NULL, ip_address inet NOT NULL, session_data text NOT NULL ); ALTER TABLE public.wt_session OWNER TO webtrees; -- -- Name: wt_site_setting; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_site_setting ( setting_name character varying(32) NOT NULL, setting_value character varying(2000) NOT NULL ); ALTER TABLE public.wt_site_setting OWNER TO webtrees; -- -- Name: wt_sources; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_sources ( s_id character varying(20) NOT NULL, s_file integer NOT NULL, s_name character varying(255) NOT NULL, s_gedcom text NOT NULL ); ALTER TABLE public.wt_sources OWNER TO webtrees; -- -- Name: wt_user; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_user ( user_id integer NOT NULL, user_name character varying(32) NOT NULL, real_name character varying(64) NOT NULL, email character varying(64) NOT NULL, password character varying(128) NOT NULL ); ALTER TABLE public.wt_user OWNER TO webtrees; -- -- Name: wt_user_gedcom_setting; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_user_gedcom_setting ( user_id integer NOT NULL, gedcom_id integer NOT NULL, setting_name character varying(32) NOT NULL, setting_value character varying(255) NOT NULL ); ALTER TABLE public.wt_user_gedcom_setting OWNER TO webtrees; -- -- Name: wt_user_setting; Type: TABLE; Schema: public; Owner: webtrees -- CREATE TABLE public.wt_user_setting ( user_id integer NOT NULL, setting_name character varying(32) NOT NULL, setting_value character varying(255) NOT NULL ); ALTER TABLE public.wt_user_setting OWNER TO webtrees; -- -- Name: wt_user_user_id_seq; Type: SEQUENCE; Schema: public; Owner: webtrees -- CREATE SEQUENCE public.wt_user_user_id_seq AS integer |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |