Revision 12542
Added by Aaron Marcuse-Kubitza almost 11 years ago
vegbien.sql | ||
---|---|---|
2451 | 2451 |
$_$; |
2452 | 2452 |
|
2453 | 2453 |
|
2454 |
-- |
|
2455 |
-- Name: ~type._plots_01_count_of_projects; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
2456 |
-- |
|
2457 |
|
|
2458 |
CREATE TABLE "~type._plots_01_count_of_projects" ( |
|
2459 |
projects bigint |
|
2460 |
); |
|
2461 |
|
|
2462 |
|
|
2463 |
-- |
|
2464 |
-- Name: ~type._plots_02_list_of_project_names; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
2465 |
-- |
|
2466 |
|
|
2467 |
CREATE TABLE "~type._plots_02_list_of_project_names" ( |
|
2468 |
project_name text |
|
2469 |
); |
|
2470 |
|
|
2471 |
|
|
2472 |
-- |
|
2473 |
-- Name: ~type._plots_03_count_of_all_plots_in_this_source; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
2474 |
-- |
|
2475 |
|
|
2476 |
CREATE TABLE "~type._plots_03_count_of_all_plots_in_this_source" ( |
|
2477 |
plots bigint |
|
2478 |
); |
|
2479 |
|
|
2480 |
|
|
2481 |
-- |
|
2482 |
-- Name: ~type._plots_04_count_of_plots_in_each_project_in_this_source; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
2483 |
-- |
|
2484 |
|
|
2485 |
CREATE TABLE "~type._plots_04_count_of_plots_in_each_project_in_this_source" ( |
|
2486 |
project_name text, |
|
2487 |
plots bigint |
|
2488 |
); |
|
2489 |
|
|
2490 |
|
|
2491 |
-- |
|
2492 |
-- Name: ~type._plots_10_count_of_individuals_per_plot_in_each_project; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
2493 |
-- |
|
2494 |
|
|
2495 |
CREATE TABLE "~type._plots_10_count_of_individuals_per_plot_in_each_project" ( |
|
2496 |
project_name text, |
|
2497 |
plot_code text, |
|
2498 |
individuals bigint |
|
2499 |
); |
|
2500 |
|
|
2501 |
|
|
2502 |
-- |
|
2503 |
-- Name: ~type._plots_11_count_of_stems_per_plot_in_each_project; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
2504 |
-- |
|
2505 |
|
|
2506 |
CREATE TABLE "~type._plots_11_count_of_stems_per_plot_in_each_project" ( |
|
2507 |
project_name text, |
|
2508 |
plot_code text, |
|
2509 |
stems bigint |
|
2510 |
); |
|
2511 |
|
|
2512 |
|
|
2513 |
-- |
|
2514 |
-- Name: ~type._plots_12_count_of_verbatim_taxa_per_plot_in_each_project; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
2515 |
-- |
|
2516 |
|
|
2517 |
CREATE TABLE "~type._plots_12_count_of_verbatim_taxa_per_plot_in_each_project" ( |
|
2518 |
project_name text, |
|
2519 |
plot_code text, |
|
2520 |
taxa bigint |
|
2521 |
); |
|
2522 |
|
|
2523 |
|
|
2524 |
-- |
|
2525 |
-- Name: ~type._plots_13_list_of_distinct_verbatim_taxa_in_each_plot_in_; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
2526 |
-- |
|
2527 |
|
|
2528 |
CREATE TABLE "~type._plots_13_list_of_distinct_verbatim_taxa_in_each_plot_in_" ( |
|
2529 |
project_name text, |
|
2530 |
plot_code text, |
|
2531 |
taxon text |
|
2532 |
); |
|
2533 |
|
|
2534 |
|
|
2535 |
-- |
|
2536 |
-- Name: ~type._plots_14_count_of_indiv_per_verbatim_taxon_per_plot_in_e; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
2537 |
-- |
|
2538 |
|
|
2539 |
CREATE TABLE "~type._plots_14_count_of_indiv_per_verbatim_taxon_per_plot_in_e" ( |
|
2540 |
project_name text, |
|
2541 |
plot_code text, |
|
2542 |
taxon text, |
|
2543 |
individuals bigint |
|
2544 |
); |
|
2545 |
|
|
2546 |
|
|
2547 |
-- |
|
2548 |
-- Name: ~type._plots_17_count_of_subplots_per_plot_for_each_project; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
2549 |
-- |
|
2550 |
|
|
2551 |
CREATE TABLE "~type._plots_17_count_of_subplots_per_plot_for_each_project" ( |
|
2552 |
project_name text, |
|
2553 |
plot_code text, |
|
2554 |
subplots bigint |
|
2555 |
); |
|
2556 |
|
|
2557 |
|
|
2558 |
-- |
|
2559 |
-- Name: ~type._traits_01_count_records; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
2560 |
-- |
|
2561 |
|
|
2562 |
CREATE TABLE "~type._traits_01_count_records" ( |
|
2563 |
"totalRecords" bigint |
|
2564 |
); |
|
2565 |
|
|
2566 |
|
|
2567 |
-- |
|
2568 |
-- Name: ~type._traits_02_count_trait_names; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
2569 |
-- |
|
2570 |
|
|
2571 |
CREATE TABLE "~type._traits_02_count_trait_names" ( |
|
2572 |
traits bigint |
|
2573 |
); |
|
2574 |
|
|
2575 |
|
|
2576 |
-- |
|
2577 |
-- Name: ~type._traits_03_list_trait_names; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
2578 |
-- |
|
2579 |
|
|
2580 |
CREATE TABLE "~type._traits_03_list_trait_names" ( |
|
2581 |
trait text |
|
2582 |
); |
|
2583 |
|
|
2584 |
|
|
2585 |
-- |
|
2586 |
-- Name: ~type._traits_04_count_records_per_trait; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
2587 |
-- |
|
2588 |
|
|
2589 |
CREATE TABLE "~type._traits_04_count_records_per_trait" ( |
|
2590 |
trait text, |
|
2591 |
measurements bigint |
|
2592 |
); |
|
2593 |
|
|
2594 |
|
|
2595 |
-- |
|
2596 |
-- Name: ~type._traits_05_count_taxa; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
2597 |
-- |
|
2598 |
|
|
2599 |
CREATE TABLE "~type._traits_05_count_taxa" ( |
|
2600 |
taxa bigint |
|
2601 |
); |
|
2602 |
|
|
2603 |
|
|
2604 |
-- |
|
2605 |
-- Name: ~type._traits_06_list_distinct_taxa; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
2606 |
-- |
|
2607 |
|
|
2608 |
CREATE TABLE "~type._traits_06_list_distinct_taxa" ( |
|
2609 |
taxonwithauthor text |
|
2610 |
); |
|
2611 |
|
|
2612 |
|
|
2613 |
-- |
|
2614 |
-- Name: ~type._traits_07_trait_value_and_units; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
2615 |
-- |
|
2616 |
|
|
2617 |
CREATE TABLE "~type._traits_07_trait_value_and_units" ( |
|
2618 |
trait text, |
|
2619 |
value text, |
|
2620 |
units text |
|
2621 |
); |
|
2622 |
|
|
2623 |
|
|
2624 |
-- |
|
2625 |
-- Name: ~type._traits_08_taxonname_trait_and_value; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
2626 |
-- |
|
2627 |
|
|
2628 |
CREATE TABLE "~type._traits_08_taxonname_trait_and_value" ( |
|
2629 |
taxonwithauthor text, |
|
2630 |
trait text, |
|
2631 |
value text |
|
2632 |
); |
|
2633 |
|
|
2634 |
|
|
2635 | 2454 |
SET search_path = public, pg_catalog; |
2636 | 2455 |
|
2637 | 2456 |
-- |
... | ... | |
6549 | 6368 |
ORDER BY taxonverbatim.taxonname; |
6550 | 6369 |
|
6551 | 6370 |
|
6371 |
-- |
|
6372 |
-- Name: ~type._plots_01_count_of_projects; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
6373 |
-- |
|
6374 |
|
|
6375 |
CREATE TABLE "~type._plots_01_count_of_projects" ( |
|
6376 |
projects bigint |
|
6377 |
); |
|
6378 |
|
|
6379 |
|
|
6380 |
-- |
|
6381 |
-- Name: ~type._plots_02_list_of_project_names; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
6382 |
-- |
|
6383 |
|
|
6384 |
CREATE TABLE "~type._plots_02_list_of_project_names" ( |
|
6385 |
project_name text |
|
6386 |
); |
|
6387 |
|
|
6388 |
|
|
6389 |
-- |
|
6390 |
-- Name: ~type._plots_03_count_of_all_plots_in_this_source; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
6391 |
-- |
|
6392 |
|
|
6393 |
CREATE TABLE "~type._plots_03_count_of_all_plots_in_this_source" ( |
|
6394 |
plots bigint |
|
6395 |
); |
|
6396 |
|
|
6397 |
|
|
6398 |
-- |
|
6399 |
-- Name: ~type._plots_04_count_of_plots_in_each_project_in_this_source; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
6400 |
-- |
|
6401 |
|
|
6402 |
CREATE TABLE "~type._plots_04_count_of_plots_in_each_project_in_this_source" ( |
|
6403 |
project_name text, |
|
6404 |
plots bigint |
|
6405 |
); |
|
6406 |
|
|
6407 |
|
|
6408 |
-- |
|
6409 |
-- Name: ~type._plots_10_count_of_individuals_per_plot_in_each_project; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
6410 |
-- |
|
6411 |
|
|
6412 |
CREATE TABLE "~type._plots_10_count_of_individuals_per_plot_in_each_project" ( |
|
6413 |
project_name text, |
|
6414 |
plot_code text, |
|
6415 |
individuals bigint |
|
6416 |
); |
|
6417 |
|
|
6418 |
|
|
6419 |
-- |
|
6420 |
-- Name: ~type._plots_11_count_of_stems_per_plot_in_each_project; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
6421 |
-- |
|
6422 |
|
|
6423 |
CREATE TABLE "~type._plots_11_count_of_stems_per_plot_in_each_project" ( |
|
6424 |
project_name text, |
|
6425 |
plot_code text, |
|
6426 |
stems bigint |
|
6427 |
); |
|
6428 |
|
|
6429 |
|
|
6430 |
-- |
|
6431 |
-- Name: ~type._plots_12_count_of_verbatim_taxa_per_plot_in_each_project; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
6432 |
-- |
|
6433 |
|
|
6434 |
CREATE TABLE "~type._plots_12_count_of_verbatim_taxa_per_plot_in_each_project" ( |
|
6435 |
project_name text, |
|
6436 |
plot_code text, |
|
6437 |
taxa bigint |
|
6438 |
); |
|
6439 |
|
|
6440 |
|
|
6441 |
-- |
|
6442 |
-- Name: ~type._plots_13_list_of_distinct_verbatim_taxa_in_each_plot_in_; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
6443 |
-- |
|
6444 |
|
|
6445 |
CREATE TABLE "~type._plots_13_list_of_distinct_verbatim_taxa_in_each_plot_in_" ( |
|
6446 |
project_name text, |
|
6447 |
plot_code text, |
|
6448 |
taxon text |
|
6449 |
); |
|
6450 |
|
|
6451 |
|
|
6452 |
-- |
|
6453 |
-- Name: ~type._plots_14_count_of_indiv_per_verbatim_taxon_per_plot_in_e; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
6454 |
-- |
|
6455 |
|
|
6456 |
CREATE TABLE "~type._plots_14_count_of_indiv_per_verbatim_taxon_per_plot_in_e" ( |
|
6457 |
project_name text, |
|
6458 |
plot_code text, |
|
6459 |
taxon text, |
|
6460 |
individuals bigint |
|
6461 |
); |
|
6462 |
|
|
6463 |
|
|
6464 |
-- |
|
6465 |
-- Name: ~type._plots_17_count_of_subplots_per_plot_for_each_project; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
6466 |
-- |
|
6467 |
|
|
6468 |
CREATE TABLE "~type._plots_17_count_of_subplots_per_plot_for_each_project" ( |
|
6469 |
project_name text, |
|
6470 |
plot_code text, |
|
6471 |
subplots bigint |
|
6472 |
); |
|
6473 |
|
|
6474 |
|
|
6475 |
-- |
|
6476 |
-- Name: ~type._traits_01_count_records; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
6477 |
-- |
|
6478 |
|
|
6479 |
CREATE TABLE "~type._traits_01_count_records" ( |
|
6480 |
"totalRecords" bigint |
|
6481 |
); |
|
6482 |
|
|
6483 |
|
|
6484 |
-- |
|
6485 |
-- Name: ~type._traits_02_count_trait_names; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
6486 |
-- |
|
6487 |
|
|
6488 |
CREATE TABLE "~type._traits_02_count_trait_names" ( |
|
6489 |
traits bigint |
|
6490 |
); |
|
6491 |
|
|
6492 |
|
|
6493 |
-- |
|
6494 |
-- Name: ~type._traits_03_list_trait_names; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
6495 |
-- |
|
6496 |
|
|
6497 |
CREATE TABLE "~type._traits_03_list_trait_names" ( |
|
6498 |
trait text |
|
6499 |
); |
|
6500 |
|
|
6501 |
|
|
6502 |
-- |
|
6503 |
-- Name: ~type._traits_04_count_records_per_trait; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
6504 |
-- |
|
6505 |
|
|
6506 |
CREATE TABLE "~type._traits_04_count_records_per_trait" ( |
|
6507 |
trait text, |
|
6508 |
measurements bigint |
|
6509 |
); |
|
6510 |
|
|
6511 |
|
|
6512 |
-- |
|
6513 |
-- Name: ~type._traits_05_count_taxa; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
6514 |
-- |
|
6515 |
|
|
6516 |
CREATE TABLE "~type._traits_05_count_taxa" ( |
|
6517 |
taxa bigint |
|
6518 |
); |
|
6519 |
|
|
6520 |
|
|
6521 |
-- |
|
6522 |
-- Name: ~type._traits_06_list_distinct_taxa; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
6523 |
-- |
|
6524 |
|
|
6525 |
CREATE TABLE "~type._traits_06_list_distinct_taxa" ( |
|
6526 |
taxonwithauthor text |
|
6527 |
); |
|
6528 |
|
|
6529 |
|
|
6530 |
-- |
|
6531 |
-- Name: ~type._traits_07_trait_value_and_units; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
6532 |
-- |
|
6533 |
|
|
6534 |
CREATE TABLE "~type._traits_07_trait_value_and_units" ( |
|
6535 |
trait text, |
|
6536 |
value text, |
|
6537 |
units text |
|
6538 |
); |
|
6539 |
|
|
6540 |
|
|
6541 |
-- |
|
6542 |
-- Name: ~type._traits_08_taxonname_trait_and_value; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
6543 |
-- |
|
6544 |
|
|
6545 |
CREATE TABLE "~type._traits_08_taxonname_trait_and_value" ( |
|
6546 |
taxonwithauthor text, |
|
6547 |
trait text, |
|
6548 |
value text |
|
6549 |
); |
|
6550 |
|
|
6551 |
|
|
6552 | 6552 |
SET search_path = public, pg_catalog; |
6553 | 6553 |
|
6554 | 6554 |
-- |
Also available in: Unified diff
schemas/vegbien.sql: synced with DB, which reorders ~type tables