<?xml version='1.0' encoding='ISO-8859-1' standalone='yes'?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN' 'http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' >
<head>
<title>Database Documentation</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type='text/css'>
body {
    /*margin: 20px auto;*/
    font-family: 'trebuchet MS', 'Lucida sans', Arial;
    font-size: 12px;
    color: #444;
}

table {
    *border-collapse: collapse; /* IE7 and lower */
    border-spacing: 0;
    /*width: 100%;*/
}

.bordered {
    border: solid #ccc 1px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    -webkit-box-shadow: 0 1px 1px #ccc;
    -moz-box-shadow: 0 1px 1px #ccc;
    box-shadow: 0 1px 1px #ccc;
}

.bordered tr:hover {
    background: #fbf8e9;
    -o-transition: all 0.1s ease-in-out;
    -webkit-transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -ms-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;
}

.bordered td, .bordered th {
    border-left: 1px solid #ccc;
    border-top: 1px solid #ccc;
    padding: 4px;
    text-align: left;
}

.bordered th {
    background-color: #d7d7ea;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#f4f4fb), to(#d7d7ea));
    background-image: -webkit-linear-gradient(top, #f4f4fb, #d7d7ea);
    background-image:    -moz-linear-gradient(top, #f4f4fb, #d7d7ea);
    background-image:     -ms-linear-gradient(top, #f4f4fb, #d7d7ea);
    background-image:      -o-linear-gradient(top, #f4f4fb, #d7d7ea);
    background-image:         linear-gradient(top, #f4f4fb, #d7d7ea);
    -webkit-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
    -moz-box-shadow:0 1px 0 rgba(255,255,255,.8) inset;
    box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
    border-top: none;
    text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

.bordered td:first-child, .bordered th:first-child {
    border-left: none;
}

.bordered th:first-child {
    -moz-border-radius: 6px 0 0 0;
    -webkit-border-radius: 6px 0 0 0;
    border-radius: 6px 0 0 0;
}

.bordered th:last-child {
    -moz-border-radius: 0 6px 0 0;
    -webkit-border-radius: 0 6px 0 0;
    border-radius: 0 6px 0 0;
}

.bordered th:only-child{
    -moz-border-radius: 6px 6px 0 0;
    -webkit-border-radius: 6px 6px 0 0;
    border-radius: 6px 6px 0 0;
}

.bordered tr:last-child td:first-child {
    -moz-border-radius: 0 0 0 6px;
    -webkit-border-radius: 0 0 0 6px;
    border-radius: 0 0 0 6px;
}

.bordered tr:last-child td:last-child {
    -moz-border-radius: 0 0 6px 0;
    -webkit-border-radius: 0 0 6px 0;
    border-radius: 0 0 6px 0;
}

</style>
</head>

<body>
<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'   width='1410' height='1100' viewbox='0 0 1410 1100' >
<style type='text/css'>
  text                { fill:#000000; font-family: Tahoma, 'trebuchet MS', Dialog, Dialog; font-size:11px; }
  text:hover          { fill:#a00000; font-size:12px; }
  text.colType        { fill:#b3b3b3; }
  text.tableTitle     { fill:#000000; }
  path                { stroke:#6e5d4e; stroke-width:1.15; fill:none; }
  rect.table          { fill:#ffffff; stroke:#222; stroke-width:0.2; filter:url(#shadow); }
  line.table          { stroke:#222; stroke-width:0.2; }
  rect.callout        { fill:url(#calloutGradient); stroke:#bebdbd; stroke-width:0.5; filter: url(#shadow);}
  rect.grp            { opacity:0.8; stroke:#b1b1b1; stroke-width:1.7; }
</style>
<defs>
  <pattern patternUnits='userSpaceOnUse' id='layoutBgA' width='10' height='20' x='0' y='0' viewBox='0 0 5 10'>  
     <line x1='-2' y1='1' x2='7' y2='10' stroke='#f0f0f0' stroke-width='.5'/>  
     <line x1='-2' y1='6' x2='7' y2='15' stroke='#f0f0f0' stroke-width='.5'/>  
     <line x1='-2' y1='-4' x2='7' y2='5' stroke='#f0f0f0' stroke-width='.5'/>  
  </pattern>  
  <radialGradient id='layoutBgB' gradientUnits='userSpaceOnUse' cx='50%' cy='50%' r='75%' fx='46%' fy='22%'>
     <stop offset='0%' stop-opacity='.2' stop-color='#f5f5f5' />  
     <stop offset='100%' stop-color='#f0f0f0' />  
  </radialGradient>
  <linearGradient id='tableHeaderGradient0' x1='0%' y1='0%' x2='0%' y2='90%' >
          <stop offset='0%' stop-color='#b2cdf7'/> 
          <stop offset='30%' stop-color='white'/> 
          <stop offset='100%' stop-color='#b2cdf7'/> 
   </linearGradient>
  <linearGradient id='tableHeaderGradient1' x1='0%' y1='0%' x2='0%' y2='90%' >
          <stop offset='0%' stop-color='#c0d4f3'/> 
          <stop offset='30%' stop-color='white'/> 
          <stop offset='100%' stop-color='#c0d4f3'/> 
   </linearGradient>
  <linearGradient id='groupUnderTitleLine' x1='0%' y1='0%' x2='100%' y2='0%' >
          <stop offset='0%' stop-color='#999999' stop-opacity='0.7'/> 
          <stop offset='100%' stop-color='#999999' stop-opacity='0' /> 
   </linearGradient>
  <radialGradient id='calloutGradient' cx='25%' cy='20%' r='80%' fx='10%' fy='10%'>
           <stop offset='0%' stop-color='#ffffff' />
    <stop offset='100%' stop-color='#f8f6d1' />
  </radialGradient>
  <filter id='shadow' width='120%' height='120%'> 
      <feOffset result='offOut' in='SourceGraphic' dx='2' dy='2' /> 
      <feColorMatrix result='matrixOut' in='offOut' type='matrix' 
      values='0.1 0 0 0 0 0 0.1 0 0 0 0 0 0.1 0 0 0 0 0 0.5 0' /> 
      <feGaussianBlur result='blurOut' in='matrixOut' stdDeviation='2' /> 
      <feBlend in='SourceGraphic' in2='blurOut' mode='normal' /> 
    </filter> 
  <filter id='formerShadow' height='130%'> 
    <feGaussianBlur in='SourceAlpha' stdDeviation='1.5'/> <!-- stdDeviation is how much to blur -->
    <feOffset dx='1.2' dy='1.2' result='offsetblur'/> <!-- how much to offset -->
    <feMerge>
    <feMergeNode/> <!-- this contains the offset blurred image -->
    <feMergeNode in='SourceGraphic'/> <!-- this contains the element that the filter is applied to -->
    </feMerge>
  </filter>
  <radialGradient id='legendGradient' fx='5%' fy='5%' r='75%' spreadMethod='pad'>
          <stop offset='0%' stop-color='#eaeef6' stop-opacity='1'/> 
          <stop offset='100%' stop-color='#cad2e3' stop-opacity='1' /> 
   </radialGradient>
  <symbol id='calloutArrowDown' overflow='visible' >
      <path d='M 0,0 L 7,11 L 15,0 z' style='fill:#f8f6d1;stroke:none; filter: url(#shadow);' />
      <path d='M 0,0 L 7,11 L 15,0' style='stroke:#bebdbd; stroke-width:0.5;' />
  </symbol>
  <symbol id='calloutArrowUp' overflow='visible' >
      <path d='M 0,15 L 7,3 L 15,15 z' style='fill:#ffffff; stroke:none; filter: url(#shadow);' />
      <path d='M 0,15 L 7,3 L 15,15' style='stroke:#bebdbd; stroke-width:0.5;' />
  </symbol>
  <symbol id='pk' overflow='visible' >
    <g transform='scale(0.99)'>
     <path style='fill:#fbea8e;stroke:#763f17;stroke-width:0.5;stroke-linecap:round;stroke-linejoin:round;'
        d='M 9.3678877,3.5695485 C 9.1030218,3.2729386 9.0796382,2.7628519 9.3396185,2.4517097 9.5449651,2.1956495 9.9040386,2.0980533 10.199638,2.2169415 10.533525,2.3415459 10.775153,2.706942 10.750675,3.0842709 10.737029,3.3980003 10.541153,3.699122 10.258248,3.8066067 9.966649,3.9250429 9.6169668,3.8418805 9.4008073,3.6062324 9.3894892,3.5943518 9.3785264,3.582104 9.3678886,3.5695487 z M 11.226617,6.9916004 C 11.888137,6.3548946 12.293488,5.4172188 12.311087,4.442353 12.378144,2.7379364 11.248678,1.0541269 9.7322318,0.44767357 8.3887112,-0.1280313 6.7865012,0.26822889 5.8918395,1.4007929 5.080823,2.3839145 4.9336815,3.8452096 5.3635544,5.101615 L 4.3670905,5.315913 C 4.0664984,5.3682645 4.0967703,5.6316724 4.2574957,5.8208829 L 4.9124,6.5655244 4.1543436,7.2512357 3.2136002,7.2163506 3.1674775,8.5586827 2.0406832,8.5086512 1.5965306,8.9299953 1.5471661,10.179833 0.75616674,10.195223 0.2112857,10.758575 0.15354288,11.735988 0.07199052,12.765553 c 0.36440953,0.238225 0.79006967,0.195492 1.44938278,-0.02675 L 6.3033562,8.1282037 6.8217102,8.6765688 C 6.9985465,8.8799427 7.3003699,8.7497574 7.358381,8.5016252 L 7.4938877,7.5084164 c 0.8537488,0.3985387 1.8303125,0.4711541 2.6851793,0.1427713 0.393927,-0.1407258 0.746858,-0.3701772 1.04755,-0.6595873 z'/>
     <path d='M 6.8014948,6.3102123 0.15369063,13.024481 0.21560535,12.141962 6.0062342,6.2683782 z'
        style='fill:#ffe5a5;fill-opacity:1;stroke:#854e31;stroke-width:0.06912433;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:3.00300009'/>
    </g>
  </symbol>
  <symbol id='unq' overflow='visible' >
    <g transform='scale(0.99)'>
      <rect style='fill:#e07554;stroke:#7e4d31;stroke-width:0.71934468;stroke-linecap:round;stroke-linejoin:round;'
         width='2.29' height='8.43' x='7.48' y='-0.76' ry='1.14' transform='matrix(0.701,0.713,-0.727,0.685,0,0)' />
      <path style='fill:white;stroke:#858585;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;'
         d='m 26.04,8.64 a 4.13,4.13 0 1 1 -8.26,0 4.13,4.13 0 1 1 8.26,0 z'
         transform='matrix(1.025,0,0,0.987,-14.690,-3.862)' />
      <text x='5.5' y='7.7' style='font-size:8px;fill:#0460b5;'>1</text>
    </g>
  </symbol>
  <symbol id='idx' overflow='visible' >
    <g transform='scale(0.99)'>
      <rect style='fill:#e07554;stroke:#7e4d31;stroke-width:0.71934468;stroke-linecap:round;stroke-linejoin:round;'
         width='2.29' height='8.43' x='7.48' y='-0.76' ry='1.14' transform='matrix(0.701,0.713,-0.727,0.685,0,0)' />
      <path style='fill:white;stroke:#858585;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;'
         d='m 26.04,8.64 a 4.13,4.13 0 1 1 -8.26,0 4.13,4.13 0 1 1 8.26,0 z'
         transform='matrix(1.025,0,0,0.987,-14.690,-3.862)' />
    </g>
  </symbol>
  <symbol id='fk' overflow='visible' >
    <g transform='scale(0.87)'>
      <path style='fill:#b7d0f6;stroke:#000000;stroke-width:0.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;'
      d='M 12.48,0.33 7.07,0.89 9.067,2.974 0.329,11.731 1.073,12.597 9.811,3.841 11.77,5.78 z' />
    </g>
  </symbol>
  <symbol id='ref' overflow='visible' >
    <g transform='scale(0.87)'>
      <path style='fill:#b7d0f6;stroke:#000000;stroke-width:0.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;'
          d='M 0.10,12.70 5.31,12.15 3.40,10.06 11.82,1.32 11.11,0.45 2.68,9.19 0.80,7.24 z'/>
    </g>
  </symbol>
  <symbol id='flag' overflow='visible' >
    <g transform='scale(0.92)'>
      <path style='fill:#b7d0f6;stroke:#000000;stroke-width:0.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;'
          d='M 0.12,12.67 0.16,7.22 C 2.59,7.22 4.13,8.78 9.22,4.22 5.68,4.98 2.53,4.50 0.09,1.80 z'/>
    </g>
  </symbol>
  <symbol id='nn' overflow='visible' >
  <path style='stroke:#9b3e50;stroke-width:0.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;'
          d='M 0,0 3,3 M 0,3 3,0 z'/>
  </symbol>
  <marker id='arrow01' viewBox='0 0 15.00 7.50' refX='7.50' refY='3.75' markerUnits='strokeWidth' markerWidth='15.00' markerHeight='7.50' orient='auto'>
    <path d='M 15.000,3.750 L 7.500,2.500 L 7.500,7.500 L 15.000,3.750 z' style='fill:#5e554d;' />
  </marker>
  <marker id='arrow1' viewBox='0 0 15.00 7.50' refX='7.50' refY='3.75' markerUnits='strokeWidth' markerWidth='15.00' markerHeight='7.50' orient='auto'>
    <path d='M 15.000,3.750 L 7.500,2.500 L 7.500,7.500 L 15.000,3.750 z' style='fill:#5e554d;' />
  </marker>
  <marker id='foot01' viewBox='0 0 15.00 7.50' refX='7.50' refY='3.75' markerUnits='strokeWidth' markerWidth='15.00' markerHeight='7.50' orient='auto'>
    <path d='M 0.00,3.75 L 15.00,3.75 z' />
    <circle cx='11.25' cy='3.75' r='2.50' style='fill:white;stroke:#5e554d;' />
    <path d='M 3.75,0.00 L 3.75, 7.50 z' />
  </marker>
  <marker id='foot0p' viewBox='0 0 15.00 7.50' refX='7.50' refY='3.75' markerUnits='strokeWidth' markerWidth='15.00' markerHeight='7.50' orient='auto'>
    <path d='M 0.00,3.75 L 15.00,3.75 z' />
    <circle cx='11.25' cy='3.75' r='2.50' style='fill:white;stroke:#5e554d;' />
    <path d='M 0.00,0.00 L 7.50,3.75 L 0.00,7.50' />
  </marker>
  <marker id='foot1' viewBox='0 0 15.00 7.50' refX='7.50' refY='3.75' markerUnits='strokeWidth' markerWidth='15.00' markerHeight='7.50' orient='auto'>
    <path d='M 0.00,3.75 L 15.00,3.75 z' />
    <path d='M 7.50,0.00 L 7.50, 7.50 z' />
    <path d='M 3.75,0.00 L 3.75, 7.50 z' />
  </marker>
  <marker id='foot1p' viewBox='0 0 15.00 7.50' refX='7.50' refY='3.75' markerUnits='strokeWidth' markerWidth='15.00' markerHeight='7.50' orient='auto'>
    <path d='M 0.00,3.75 L 15.00,3.75 z' />
    <path d='M 7.50,0.00 L 7.50, 7.50 z' />
    <path d='M 0.00,0.00 L 7.50,3.75 L 0.00,7.50' />
  </marker>
</defs>

<!-- ============= Desktop ============= -->
<rect x='1' y='1' width='1408' height='1098' rx='7' ry='7' style='fill:url(#layoutBgA); stroke:#333333; stroke-width:0.5;' />
<rect width='120%' x='-10%' y='-10%' height='120%' fill='url(#layoutBgB)'/>
<!-- ============= Legend ============= -->
<g transform='translate(10,10)'>
  <rect x='10' y='10' width='300' height='64' rx='6' ry='6' style='fill:url(#legendGradient);filter:url(#shadow);'/> 
  <text x='20' y='30'><tspan>Project</tspan> science @ <a xlink:href='http://www.dbschema.com'>DbSchema</a></text> 
  <text x='20' y='44'><tspan>Layout</tspan> science</text> 
  <text x='20' y='58' style='fill:#777'><tspan>Hint: Column comments available as mouse-over tooltips.</tspan></text> 
</g>

<g transform='translate(0,110)'>
<path transform='translate(7,0)' marker-start='url(#foot0p)'     d='M 345 240 L 322,240 Q 315,240 315,232 L 315,97 Q 315,90 307,90 L 300,90' >
        <title>Foreign Key fk_country_id
        cities references countries ( country_id -> id      )</title>
</path>
<text x='296' y='235' transform='rotate(0 296,235)' title='Foreign Key fk_country_id
        cities references countries ( country_id -> id      )' style='fill:#a1a0a0;'>country_id</text><path transform='translate(7,0)' marker-start='url(#foot1)'     d='M 675 345 L 667,345 Q 660,345 660,337 L 660,247 Q 660,240 652,240 L 645,240' >
        <title>Foreign Key fk_city_id
        universities  references cities ( id )</title>
</path>
<text x='669' y='340' transform='rotate(0 669,340)' title='Foreign Key fk_city_id
        universities  references cities ( id )' style='fill:#a1a0a0;'>id</text><path transform='translate(7,0)' marker-start='url(#foot0p)' marker-end='url(#arrow1)'    d='M 675 240 L 532,240 Q 525,240 525,232 L 525,232 Q 525,225 517,225 L 510,225' >
        <title>Foreign Key fk_city_id
        schools references cities ( city_id           -> id )</title>
</path>
<text x='616' y='235' transform='rotate(0 616,235)' title='Foreign Key fk_city_id
        schools references cities ( city_id           -> id )' style='fill:#a1a0a0;'>city_id          </text><path transform='translate(7,0)' marker-start='url(#foot0p)' marker-end='url(#arrow1)'    d='M 930 360 L 847,360 Q 840,360 840,352 L 840,352 Q 840,345 832,345 L 825,345' >
        <title>Foreign Key fk_university_id 
        faculties references universities  ( university_id   -> id )</title>
</path>
<text x='865' y='355' transform='rotate(0 865,355)' title='Foreign Key fk_university_id 
        faculties references universities  ( university_id   -> id )' style='fill:#a1a0a0;'>university_id  </text><path transform='translate(7,0)' marker-start='url(#foot0p)' marker-end='url(#arrow1)'    d='M 1200 360 L 1117,360 Q 1110,360 1110,352 L 1110,352 Q 1110,345 1102,345 L 1095,345' >
        <title>Foreign Key fk_faculty_id
        chairs references faculties ( faculty_id           -> id )</title>
</path>
<text x='1125' y='355' transform='rotate(0 1125,355)' title='Foreign Key fk_faculty_id
        chairs references faculties ( faculty_id           -> id )' style='fill:#a1a0a0;'>faculty_id          </text><path transform='translate(7,0)' marker-start='url(#foot0p)' marker-end='url(#arrow1)'    d='M 345 555 L 277,555 Q 270,555 270,547 L 270,532 Q 270,525 262,525 L 255,525' >
        <title>Foreign Key fk_scientist_id
        projects references scientists ( scientist_id -> id )</title>
</path>
<text x='293' y='550' transform='rotate(0 293,550)' title='Foreign Key fk_scientist_id
        projects references scientists ( scientist_id -> id )' style='fill:#a1a0a0;'>scientist_id</text><path transform='translate(7,0)' marker-start='url(#foot0p)' marker-end='url(#arrow1)'    d='M 345 90 L 187,90 Q 180,90 180,82 L 180,82 Q 180,75 172,75 L 165,75' >
        <title>Foreign Key fk_country_id
        main_cities references countries ( country_id -> id      )</title>
</path>
<text x='296' y='85' transform='rotate(0 296,85)' title='Foreign Key fk_country_id
        main_cities references countries ( country_id -> id      )' style='fill:#a1a0a0;'>country_id</text><path transform='translate(7,0)' marker-start='url(#foot0p)' marker-end='url(#arrow1)'    d='M 345 105 L 337,105 Q 330,105 330,112 L 330,217 Q 330,225 337,225 L 345,225' >
        <title>Foreign Key fk_city_id
        main_cities references cities ( city_id -> id )</title>
</path>
<text x='316' y='100' transform='rotate(0 316,100)' title='Foreign Key fk_city_id
        main_cities references cities ( city_id -> id )' style='fill:#a1a0a0;'>city_id</text><!-- ============= Table 'countries' ============= -->
<rect class='table' x='45' y='38' width='120' height='90' rx='7' ry='7' />
<path d='M 45.50 64.50 L 45.50 45.50 Q 45.50 38.50 52.50 38.50 L 157.50 38.50 Q 164.50 38.50 164.50 45.50 L 164.50 64.50 L45.50 64.50 ' style='fill:url(#tableHeaderGradient0); stroke:none;' />
<a xlink:href='#countries'><text x='82' y='52' class='tableTitle'>countries</text><title>Table science.countries
Содержит наименования стран на русском и английском языках</title></a>
  <use id='nn' x='47' y='72' xlink:href='#nn'/><a xlink:href='#countries.id     '><use id='pk' x='47' y='71' xlink:href='#pk'/><title>Primary Key  ( id      ) </title></a>
<a xlink:href='#countries.id     '><text x='63' y='82'>id     </text><text x='150' y='82' text-anchor='end' class='colType'>smallserial </text><title>id      smallserial  not null
Идентификатор</title></a>
<a xlink:href='#countries.id     '><use id='ref' x='153' y='71' xlink:href='#ref'/><title>Referred by cities ( country_id -> id      ) 
Referred by main_cities ( country_id -> id      ) </title></a>
  <a xlink:href='#countries.title_en  '><text x='63' y='97'>title_en  </text><text x='150' y='97' text-anchor='end' class='colType'>text</text><title>title_en   text
Наименование на английском языке</title></a>
  <a xlink:href='#countries.title_ru  '><text x='63' y='112'>title_ru  </text><text x='150' y='112' text-anchor='end' class='colType'>text</text><title>title_ru   text
Наименование на русском языке</title></a>

<!-- ============= Table 'cities' ============= -->
<rect class='table' x='360' y='188' width='150' height='120' rx='7' ry='7' />
<path d='M 360.50 214.50 L 360.50 195.50 Q 360.50 188.50 367.50 188.50 L 502.50 188.50 Q 509.50 188.50 509.50 195.50 L 509.50 214.50 L360.50 214.50 ' style='fill:url(#tableHeaderGradient1); stroke:none;' />
<a xlink:href='#cities'><text x='422' y='202' class='tableTitle'>cities</text><title>Table science.cities
Содержит наименования всех населенных пунктов (с указанием региона и района, если они есть) по каждой стране</title></a>
  <use id='nn' x='362' y='222' xlink:href='#nn'/><a xlink:href='#cities.id'><use id='pk' x='362' y='221' xlink:href='#pk'/><title>Primary Key  ( id ) </title></a>
<a xlink:href='#cities.id'><text x='378' y='232'>id</text><text x='495' y='232' text-anchor='end' class='colType'>bigserial</text><title>id bigserial not null
Идентификатор</title></a>
<a xlink:href='#cities.id'><use id='ref' x='498' y='221' xlink:href='#ref'/><title>Referred by main_cities ( city_id -> id ) 
Referred by schools ( city_id           -> id ) 
Referred by universities  ( id ) </title></a>
  <a xlink:href='#cities.country_id'><use id='idx' x='362' y='236' xlink:href='#idx'/><title>Index  ( country_id ) </title></a>
<a xlink:href='#cities.country_id'><text x='378' y='247'>country_id</text><text x='495' y='247' text-anchor='end' class='colType'>smallserial </text><title>country_id smallserial 
Идентификатор из таблицы countries (внешний ключ)</title></a>
<a xlink:href='#cities.country_id'><use id='fk' x='498' y='236' xlink:href='#fk'/><title>References countries ( country_id -> id      ) </title></a>
  <a xlink:href='#cities.region'><text x='378' y='262'>region</text><text x='495' y='262' text-anchor='end' class='colType'>text</text><title>region text default NULL'
Регион</title></a>
  <a xlink:href='#cities.area'><text x='378' y='277'>area</text><text x='495' y='277' text-anchor='end' class='colType'>text</text><title>area text default 'NULL'
Район</title></a>
  <a xlink:href='#cities.title'><text x='378' y='292'>title</text><text x='495' y='292' text-anchor='end' class='colType'>text</text><title>title text
Наименование</title></a>

<!-- ============= Table 'universities ' ============= -->
<rect class='table' x='690' y='308' width='135' height='90' rx='7' ry='7' />
<path d='M 690.50 334.50 L 690.50 315.50 Q 690.50 308.50 697.50 308.50 L 817.50 308.50 Q 824.50 308.50 824.50 315.50 L 824.50 334.50 L690.50 334.50 ' style='fill:url(#tableHeaderGradient1); stroke:none;' />
<a xlink:href='#universities '><text x='728' y='322' class='tableTitle'>universities </text><title>Table science.universities 
Содержит наименования ВУЗов по каждому городу из таблицы cities, в которых есть ВУЗы</title></a>
  <use id='nn' x='692' y='342' xlink:href='#nn'/><a xlink:href='#universities .id'><use id='pk' x='692' y='341' xlink:href='#pk'/><title>Primary Key  ( id ) </title></a>
<a xlink:href='#universities .id'><text x='708' y='352'>id</text><text x='810' y='352' text-anchor='end' class='colType'>bigserial</text><title>id bigserial not null
Идентификатор</title></a>
<a xlink:href='#universities .id'><use id='fk' x='813' y='341' xlink:href='#fk'/><title>References cities ( id ) 
Referred by faculties ( university_id   -> id ) </title></a>
  <a xlink:href='#universities .city_id          '><text x='708' y='367'>city_id          </text><text x='810' y='367' text-anchor='end' class='colType'>bigserial</text><title>city_id           bigserial
идентификатор из таблицы cities
(внешний ключ)</title></a>
  <a xlink:href='#universities .title'><text x='708' y='382'>title</text><text x='810' y='382' text-anchor='end' class='colType'>text</text><title>title text
Наименование</title></a>

<!-- ============= Table 'schools' ============= -->
<rect class='table' x='690' y='188' width='135' height='90' rx='7' ry='7' />
<path d='M 690.50 214.50 L 690.50 195.50 Q 690.50 188.50 697.50 188.50 L 817.50 188.50 Q 824.50 188.50 824.50 195.50 L 824.50 214.50 L690.50 214.50 ' style='fill:url(#tableHeaderGradient1); stroke:none;' />
<a xlink:href='#schools'><text x='738' y='202' class='tableTitle'>schools</text><title>Table science.schools
Содержит наименования всех школ по каждому городу из таблицы cities, в которых есть школы</title></a>
  <use id='nn' x='692' y='222' xlink:href='#nn'/><a xlink:href='#schools.id'><use id='pk' x='692' y='221' xlink:href='#pk'/><title>Primary Key  ( id ) </title></a>
<a xlink:href='#schools.id'><text x='708' y='232'>id</text><text x='810' y='232' text-anchor='end' class='colType'>bigserial</text><title>id bigserial not null
Идентификатор</title></a>
  <a xlink:href='#schools.city_id          '><use id='idx' x='692' y='236' xlink:href='#idx'/><title>Index  ( city_id           ) </title></a>
<a xlink:href='#schools.city_id          '><text x='708' y='247'>city_id          </text><text x='810' y='247' text-anchor='end' class='colType'>bigserial</text><title>city_id           bigserial
Идентификатор из таблицы cities (внешний ключ)</title></a>
<a xlink:href='#schools.city_id          '><use id='fk' x='813' y='236' xlink:href='#fk'/><title>References cities ( city_id           -> id ) </title></a>
  <a xlink:href='#schools.title'><text x='708' y='262'>title</text><text x='810' y='262' text-anchor='end' class='colType'>bigserial</text><title>title bigserial
Наименование</title></a>

<!-- ============= Table 'faculties' ============= -->
<rect class='table' x='945' y='308' width='150' height='90' rx='7' ry='7' />
<path d='M 945.50 334.50 L 945.50 315.50 Q 945.50 308.50 952.50 308.50 L 1087.50 308.50 Q 1094.50 308.50 1094.50 315.50 L 1094.50 334.50 L945.50 334.50 ' style='fill:url(#tableHeaderGradient1); stroke:none;' />
<a xlink:href='#faculties'><text x='999' y='322' class='tableTitle'>faculties</text><title>Table science.faculties
Содержит наименования факультетов по каждому ВУЗу из таблицы universities</title></a>
  <use id='nn' x='947' y='342' xlink:href='#nn'/><a xlink:href='#faculties.id'><use id='pk' x='947' y='341' xlink:href='#pk'/><title>Primary Key  ( id ) </title></a>
<a xlink:href='#faculties.id'><text x='963' y='352'>id</text><text x='1080' y='352' text-anchor='end' class='colType'>bigserial</text><title>id bigserial not null
Идентификатор</title></a>
<a xlink:href='#faculties.id'><use id='ref' x='1083' y='341' xlink:href='#ref'/><title>Referred by chairs ( faculty_id           -> id ) </title></a>
  <a xlink:href='#faculties.university_id  '><use id='idx' x='947' y='356' xlink:href='#idx'/><title>Index  ( university_id   ) </title></a>
<a xlink:href='#faculties.university_id  '><text x='963' y='367'>university_id  </text><text x='1080' y='367' text-anchor='end' class='colType'>bigserial</text><title>university_id   bigserial
Идентификатор из таблицы universities (внешний ключ)</title></a>
<a xlink:href='#faculties.university_id  '><use id='fk' x='1083' y='356' xlink:href='#fk'/><title>References universities  ( university_id   -> id ) </title></a>
  <a xlink:href='#faculties.title'><text x='963' y='382'>title</text><text x='1080' y='382' text-anchor='end' class='colType'>text</text><title>title text
Наименование</title></a>

<!-- ============= Table 'chairs' ============= -->
<rect class='table' x='1215' y='308' width='150' height='90' rx='7' ry='7' />
<path d='M 1215.50 334.50 L 1215.50 315.50 Q 1215.50 308.50 1222.50 308.50 L 1357.50 308.50 Q 1364.50 308.50 1364.50 315.50 L 1364.50 334.50 L1215.50 334.50 ' style='fill:url(#tableHeaderGradient1); stroke:none;' />
<a xlink:href='#chairs'><text x='1275' y='322' class='tableTitle'>chairs</text><title>Table science.chairs
Содержит наименования кафедр по каждому факультету из таблицы faculties</title></a>
  <use id='nn' x='1217' y='342' xlink:href='#nn'/><a xlink:href='#chairs.id'><use id='pk' x='1217' y='341' xlink:href='#pk'/><title>Primary Key  ( id ) </title></a>
<a xlink:href='#chairs.id'><text x='1233' y='352'>id</text><text x='1350' y='352' text-anchor='end' class='colType'>bigserial</text><title>id bigserial not null
Идентификатор</title></a>
  <a xlink:href='#chairs.faculty_id          '><use id='idx' x='1217' y='356' xlink:href='#idx'/><title>Index  ( faculty_id           ) </title></a>
<a xlink:href='#chairs.faculty_id          '><text x='1233' y='367'>faculty_id          </text><text x='1350' y='367' text-anchor='end' class='colType'>bigserial</text><title>faculty_id           bigserial
Идентификатор из таблицы universities (внешний ключ)</title></a>
<a xlink:href='#chairs.faculty_id          '><use id='fk' x='1353' y='356' xlink:href='#fk'/><title>References faculties ( faculty_id           -> id ) </title></a>
  <a xlink:href='#chairs.title'><text x='1233' y='382'>title</text><text x='1350' y='382' text-anchor='end' class='colType'>text</text><title>title text
Наименование</title></a>

<!-- ============= Table 'scientists' ============= -->
<rect class='table' x='45' y='488' width='210' height='390' rx='7' ry='7' />
<path d='M 45.50 514.50 L 45.50 495.50 Q 45.50 488.50 52.50 488.50 L 247.50 488.50 Q 254.50 488.50 254.50 495.50 L 254.50 514.50 L45.50 514.50 ' style='fill:url(#tableHeaderGradient1); stroke:none;' />
<a xlink:href='#scientists'><text x='127' y='502' class='tableTitle'>scientists</text><title>Table science.scientists
Содержит данные пользовательских профилей</title></a>
  <use id='nn' x='47' y='522' xlink:href='#nn'/><a xlink:href='#scientists.id'><use id='pk' x='47' y='521' xlink:href='#pk'/><title>Primary Key  ( id ) </title></a>
<a xlink:href='#scientists.id'><text x='63' y='532'>id</text><text x='240' y='532' text-anchor='end' class='colType'>bigserial</text><title>id bigserial not null
Идентификатор</title></a>
<a xlink:href='#scientists.id'><use id='ref' x='243' y='521' xlink:href='#ref'/><title>Referred by projects ( scientist_id -> id ) </title></a>
  <a xlink:href='#scientists.email'><text x='63' y='547'>email</text><text x='240' y='547' text-anchor='end' class='colType'>text</text><title>email text
Электронная почта для входа на сайт</title></a>
  <a xlink:href='#scientists.first_name'><text x='63' y='562'>first_name</text><text x='240' y='562' text-anchor='end' class='colType'>text</text><title>first_name text
Имя</title></a>
  <a xlink:href='#scientists.last_name'><text x='63' y='577'>last_name</text><text x='240' y='577' text-anchor='end' class='colType'>text</text><title>last_name text
Фамилия</title></a>
  <a xlink:href='#scientists.middle_name'><text x='63' y='592'>middle_name</text><text x='240' y='592' text-anchor='end' class='colType'>text</text><title>middle_name text default NULL'
Отчество</title></a>
  <a xlink:href='#scientists.dob'><text x='63' y='607'>dob</text><text x='240' y='607' text-anchor='end' class='colType'>date</text><title>dob date
Дата рождения</title></a>
  <a xlink:href='#scientists.gender'><text x='63' y='622'>gender</text><text x='240' y='622' text-anchor='end' class='colType'>text</text><title>gender text
Пол</title></a>
  <a xlink:href='#scientists.image_small'><text x='63' y='637'>image_small</text><text x='240' y='637' text-anchor='end' class='colType'>bytea</text><title>image_small bytea
Фото 50x50</title></a>
  <a xlink:href='#scientists.image_medium'><text x='63' y='652'>image_medium</text><text x='240' y='652' text-anchor='end' class='colType'>bytea</text><title>image_medium bytea
Фото 100x100</title></a>
  <a xlink:href='#scientists.image_large'><text x='63' y='667'>image_large</text><text x='240' y='667' text-anchor='end' class='colType'>bytea</text><title>image_large bytea
Фото 300x300</title></a>
  <a xlink:href='#scientists.location_country'><text x='63' y='682'>location_country</text><text x='240' y='682' text-anchor='end' class='colType'>text</text><title>location_country text
Страна</title></a>
  <a xlink:href='#scientists.location_city'><text x='63' y='697'>location_city</text><text x='240' y='697' text-anchor='end' class='colType'>text</text><title>location_city text
Город, райн и регион</title></a>
  <a xlink:href='#scientists.middle_education  '><text x='63' y='712'>middle_education  </text><text x='240' y='712' text-anchor='end' class='colType'>json</text><title>middle_education   json
Cреднее образование. Структура JSON:
{‘country’:str, ‘city’:str, ‘school’:str, ‘graduation_year’:str}, где
country: страна;
city: город;
school: школа;
graduation_year: год окончания.
Добавить можно только одну школу - текущую или ту, которую уже окончил. Остальные не нужны.</title></a>
  <a xlink:href='#scientists.high_education'><text x='63' y='727'>high_education</text><text x='240' y='727' text-anchor='end' class='colType'>json</text><title>high_education json
Dысшее образование.
Струткура JSON:
{id: {‘country’:str, ‘city’:str, ‘university’:str, ‘faculty’:str, ‘chair’:str, ‘graduation_year’:str, ‘graduation_level’:str}}, где
id - порядковй номер записи в JSON, если было несколько учебных заведений;
country - страна
city - город;
university - университет;
faculty - факультет;
chair - кафедра;
graduation_year - год окончания;
graduation_level - полученная степень.</title></a>
  <a xlink:href='#scientists.publications'><text x='63' y='742'>publications</text><text x='240' y='742' text-anchor='end' class='colType'>text [ ]</text><title>publications text [ ]
Публикации. Массив строк.</title></a>
  <a xlink:href='#scientists.interests'><text x='63' y='757'>interests</text><text x='240' y='757' text-anchor='end' class='colType'>text</text><title>interests text
Интересы</title></a>
  <a xlink:href='#scientists.project_ids'><text x='63' y='772'>project_ids</text><text x='240' y='772' text-anchor='end' class='colType'>bigserial [ ]</text><title>project_ids bigserial [ ]
Проекты, в которых участвует пользователь. Массив идентификаторов.</title></a>
  <a xlink:href='#scientists.about'><text x='63' y='787'>about</text><text x='240' y='787' text-anchor='end' class='colType'>text</text><title>about text
О себе</title></a>
  <a xlink:href='#scientists.contacts'><text x='63' y='802'>contacts</text><text x='240' y='802' text-anchor='end' class='colType'>json</text><title>contacts json
Контакты. Стурктура JSON : {‘skype’:str, ‘tel’:str, ‘email’:str, ‘address’:str}, где
skype -  skype;
tel - телефон;
address - адрес.</title></a>
  <a xlink:href='#scientists.desired_project_ids          '><text x='63' y='817'>desired_project_ids          </text><text x='240' y='817' text-anchor='end' class='colType'>bigserial [ ]</text><title>desired_project_ids           bigserial [ ]
Проекты, в которых пользователь хочет участвовать. Массив идентификаторов.</title></a>
  <a xlink:href='#scientists.managing_project_ids'><text x='63' y='832'>managing_project_ids</text><text x='240' y='832' text-anchor='end' class='colType'>bigserial [ ]</text><title>managing_project_ids bigserial [ ]
Проекты, в которых пользователь является менеджером - т.е. такиме проекты, которые он сам зарегистрирвоал на сайте. Массив идентификаторов</title></a>
  <a xlink:href='#scientists.dt_created           '><text x='63' y='847'>dt_created           </text><text x='240' y='847' text-anchor='end' class='colType'>timestamptz</text><title>dt_created            timestamptz
Дата создания аккаунта</title></a>
  <a xlink:href='#scientists.dt_last_visit'><text x='63' y='862'>dt_last_visit</text><text x='240' y='862' text-anchor='end' class='colType'>timestamptz</text><title>dt_last_visit timestamptz
Дата последнего посещения</title></a>

<!-- ============= Table 'projects' ============= -->
<rect class='table' x='360' y='488' width='225' height='450' rx='7' ry='7' />
<path d='M 360.50 514.50 L 360.50 495.50 Q 360.50 488.50 367.50 488.50 L 577.50 488.50 Q 584.50 488.50 584.50 495.50 L 584.50 514.50 L360.50 514.50 ' style='fill:url(#tableHeaderGradient1); stroke:none;' />
<a xlink:href='#projects'><text x='453' y='502' class='tableTitle'>projects</text><title>Table science.projects
Содержит описания проектов</title></a>
  <use id='nn' x='362' y='522' xlink:href='#nn'/><a xlink:href='#projects.id'><use id='pk' x='362' y='521' xlink:href='#pk'/><title>Primary Key  ( id, lang ) Unique Index  ( id ) </title></a>
<a xlink:href='#projects.id'><text x='378' y='532'>id</text><text x='570' y='532' text-anchor='end' class='colType'>bigserial</text><title>id bigserial not null
Идентификатор проекта, часть составного первичного  ключа.</title></a>
  <use id='nn' x='362' y='537' xlink:href='#nn'/><a xlink:href='#projects.lang'><use id='pk' x='362' y='536' xlink:href='#pk'/><title>Primary Key  ( id, lang ) </title></a>
<a xlink:href='#projects.lang'><text x='378' y='547'>lang</text><text x='570' y='547' text-anchor='end' class='colType'>text</text><title>lang text not null
Язык конкретного описания проекта (могут быть описания на других языках), часть составного первичного ключа.</title></a>
  <a xlink:href='#projects.scientist_id'><use id='idx' x='362' y='551' xlink:href='#idx'/><title>Index  ( scientist_id ) </title></a>
<a xlink:href='#projects.scientist_id'><text x='378' y='562'>scientist_id</text><text x='570' y='562' text-anchor='end' class='colType'>bigserial</text><title>scientist_id bigserial
Индентификатор пользователя, добавившего проект</title></a>
<a xlink:href='#projects.scientist_id'><use id='fk' x='573' y='551' xlink:href='#fk'/><title>References scientists ( scientist_id -> id ) </title></a>
  <a xlink:href='#projects.research_fields'><text x='378' y='577'>research_fields</text><text x='570' y='577' text-anchor='end' class='colType'>text [ ]</text><title>research_fields text [ ]
Виды наук. Массив строк.</title></a>
  <a xlink:href='#projects.title '><text x='378' y='592'>title </text><text x='570' y='592' text-anchor='end' class='colType'>text</text><title>title  text
Название проекта</title></a>
  <a xlink:href='#projects.description_short'><text x='378' y='607'>description_short</text><text x='570' y='607' text-anchor='end' class='colType'>text</text><title>description_short text
Краткое описание проекта</title></a>
  <a xlink:href='#projects.views '><text x='378' y='622'>views </text><text x='570' y='622' text-anchor='end' class='colType'>bigserial</text><title>views  bigserial
Количество просмотров</title></a>
  <a xlink:href='#projects.likes '><text x='378' y='637'>likes </text><text x='570' y='637' text-anchor='end' class='colType'>bigserial</text><title>likes  bigserial
Количество лайков</title></a>
  <a xlink:href='#projects.responses '><text x='378' y='652'>responses </text><text x='570' y='652' text-anchor='end' class='colType'>bigserial [ ]</text><title>responses  bigserial [ ]
id пользователей, которые откликнулись на вакансии в проекте. Массив идентификаторов.</title></a>
  <a xlink:href='#projects.organization_type'><text x='378' y='667'>organization_type</text><text x='570' y='667' text-anchor='end' class='colType'>text</text><title>organization_type text
Тип организации, в рамках которой реализуется проект: личный (нет организации), ВУЗ, иная организация. Типы проектов необходимо продумать более детально.</title></a>
  <a xlink:href='#projects.organization_location                   '><text x='378' y='682'>organization_location                   </text><text x='570' y='682' text-anchor='end' class='colType'>json</text><title>organization_location                    json
Локация организации. Структура JSON: {‘country’:str, ‘city’:str}, где
country - страна;
city - город

Поле заполняется, если проект не личный.</title></a>
  <a xlink:href='#projects.organization_structure'><text x='378' y='697'>organization_structure</text><text x='570' y='697' text-anchor='end' class='colType'>json</text><title>organization_structure json
Структура организации.
Структура JSON (если выбран ВУЗ): {id:{‘university’:str, ‘faculty’:str, ‘chair’:str}}, где
id -  порядковый номер ВУЗа;
faculty - факультет;
chair - кафедра.
Структура JSON (если выбрана иная организация):
{‘org_name’:str} если выбрана иная организация

Поле заполняется, если проект не личный.</title></a>
  <a xlink:href='#projects.start_date'><text x='378' y='712'>start_date</text><text x='570' y='712' text-anchor='end' class='colType'>date</text><title>start_date date
Дата начала проекта</title></a>
  <a xlink:href='#projects.end_date'><text x='378' y='727'>end_date</text><text x='570' y='727' text-anchor='end' class='colType'>date</text><title>end_date date
Дата окончания проекта (если есть)</title></a>
  <a xlink:href='#projects.objective '><text x='378' y='742'>objective </text><text x='570' y='742' text-anchor='end' class='colType'>text</text><title>objective  text
Цель проекта</title></a>
  <a xlink:href='#projects.description_full'><text x='378' y='757'>description_full</text><text x='570' y='757' text-anchor='end' class='colType'>text</text><title>description_full text
Полное описание проекта, проведенных исследований, используемых методов, оборудования, экспериментов и т.п.</title></a>
  <a xlink:href='#projects.results'><text x='378' y='772'>results</text><text x='570' y='772' text-anchor='end' class='colType'>text</text><title>results text
Достигнутые результаты и их практическое применение </title></a>
  <a xlink:href='#projects.related_data'><text x='378' y='787'>related_data</text><text x='570' y='787' text-anchor='end' class='colType'>json</text><title>related_data json
Дополнительные данные, которые могут быть полезны заинтересовавшимся. Ссылки на сайты, наименования статей и т.п. Структура JSON: {id: {‘source’:str, ‘description’:str}}, где
source - источник данных;
description -  краткое описание информации, которую можно найти в источнике.</title></a>
  <a xlink:href='#projects.leader'><text x='378' y='802'>leader</text><text x='570' y='802' text-anchor='end' class='colType'>json</text><title>leader json
Руководитель проекта.
Структура JSON: {‘first_name’:str, ‘last_name’:str, ‘middle_name’:str}, где
first_name - имя;
last_name - фамилия;
middle_name - отчество.</title></a>
  <a xlink:href='#projects.participants '><text x='378' y='817'>participants </text><text x='570' y='817' text-anchor='end' class='colType'>json</text><title>participants  json
Участники проекта.
Структура JSON:
{id: {‘scientist_id’:’bigserial’, ‘role’:str, ‘first_name’:str, ‘last_name’:str, ‘middle_name’str, 'verified’: bool}}, где
id - порядковый номер участника;
scientist_id - идентификатор из таблицы scientists;
role - роль в проекте;
first_name - имя;
last_name - фамилия;
middle_name - отчество;
verified - подтверждена личность участника или нет.</title></a>
  <a xlink:href='#projects.missed_participants'><text x='378' y='832'>missed_participants</text><text x='570' y='832' text-anchor='end' class='colType'>json</text><title>missed_participants json
Кто требется в проект (вакансии).
Структура JSON: {id :{‘role’:str, ‘description’:str}}, где
id - порядковый номер вакансии;
role - наименование вакансии;
description - описание требований к кандидату.</title></a>
  <a xlink:href='#projects.tags '><text x='378' y='847'>tags </text><text x='570' y='847' text-anchor='end' class='colType'>text [ ]</text><title>tags  text [ ]
Тэги. Массив строк.</title></a>
  <a xlink:href='#projects.contact_manager'><text x='378' y='862'>contact_manager</text><text x='570' y='862' text-anchor='end' class='colType'>text</text><title>contact_manager text
Контактное лицо</title></a>
  <a xlink:href='#projects.contacts '><text x='378' y='877'>contacts </text><text x='570' y='877' text-anchor='end' class='colType'>json</text><title>contacts  json
Контакты для связи.
Структура JSON:  {‘skype’:str, ‘tel’:str, ‘email’:str, ‘address’:str}, где
skype - skype;
email - адрес электронной почты;
address - почтовый адрес.</title></a>
  <a xlink:href='#projects.project_site'><text x='378' y='892'>project_site</text><text x='570' y='892' text-anchor='end' class='colType'>text</text><title>project_site text
Cайт проекта</title></a>
  <a xlink:href='#projects.dt_created'><text x='378' y='907'>dt_created</text><text x='570' y='907' text-anchor='end' class='colType'>timestamptz</text><title>dt_created timestamptz
Дата создания записи о пректе в БД</title></a>
  <a xlink:href='#projects.dt_updated'><text x='378' y='922'>dt_updated</text><text x='570' y='922' text-anchor='end' class='colType'>timestamptz</text><title>dt_updated timestamptz
Дата обновления  записи о проекте в БД</title></a>

<!-- ============= Table 'languages' ============= -->
<rect class='table' x='690' y='488' width='120' height='75' rx='7' ry='7' />
<path d='M 690.50 514.50 L 690.50 495.50 Q 690.50 488.50 697.50 488.50 L 802.50 488.50 Q 809.50 488.50 809.50 495.50 L 809.50 514.50 L690.50 514.50 ' style='fill:url(#tableHeaderGradient1); stroke:none;' />
<a xlink:href='#languages'><text x='725' y='502' class='tableTitle'>languages</text><title>Table science.languages
Содержит двухбуквенные коды языков по ISO 639-1 </title></a>
  <use id='nn' x='692' y='522' xlink:href='#nn'/><a xlink:href='#languages.id     '><use id='pk' x='692' y='521' xlink:href='#pk'/><title>Primary Key  ( id      ) </title></a>
<a xlink:href='#languages.id     '><text x='708' y='532'>id     </text><text x='795' y='532' text-anchor='end' class='colType'>smallserial </text><title>id      smallserial  not null
Идентификатор</title></a>
  <a xlink:href='#languages.title'><text x='708' y='547'>title</text><text x='795' y='547' text-anchor='end' class='colType'>text</text><title>title text
Двухбуквенные коды языков
по ISO 639-1 http://ru.wiktionary.org/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D1%81%D0%BB%D0%BE%D0%B2%D0%B0%D1%80%D1%8C:ISO_639 </title></a>

<!-- ============= Table 'main_cities' ============= -->
<rect class='table' x='360' y='38' width='150' height='105' rx='7' ry='7' />
<path d='M 360.50 64.50 L 360.50 45.50 Q 360.50 38.50 367.50 38.50 L 502.50 38.50 Q 509.50 38.50 509.50 45.50 L 509.50 64.50 L360.50 64.50 ' style='fill:url(#tableHeaderGradient0); stroke:none;' />
<a xlink:href='#main_cities'><text x='408' y='52' class='tableTitle'>main_cities</text><title>Table science.main_cities
Содержит наименования крупнейших городов по каждой стране из таблицы countries</title></a>
  <use id='nn' x='362' y='72' xlink:href='#nn'/><a xlink:href='#main_cities.id'><use id='pk' x='362' y='71' xlink:href='#pk'/><title>Primary Key  ( id ) </title></a>
<a xlink:href='#main_cities.id'><text x='378' y='82'>id</text><text x='495' y='82' text-anchor='end' class='colType'>integer</text><title>id integer not null
Идентификатор</title></a>
  <a xlink:href='#main_cities.country_id'><text x='378' y='97'>country_id</text><text x='495' y='97' text-anchor='end' class='colType'>smallserial </text><title>country_id smallserial 
Идентификатор из таблицы countries (внешний ключ)</title></a>
<a xlink:href='#main_cities.country_id'><use id='fk' x='498' y='86' xlink:href='#fk'/><title>References countries ( country_id -> id      ) </title></a>
  <a xlink:href='#main_cities.city_id'><use id='idx' x='362' y='101' xlink:href='#idx'/><title>Index  ( city_id ) </title></a>
<a xlink:href='#main_cities.city_id'><text x='378' y='112'>city_id</text><text x='495' y='112' text-anchor='end' class='colType'>bigserial</text><title>city_id bigserial
Идентификатор из таблицы cities (внешний ключ)</title></a>
<a xlink:href='#main_cities.city_id'><use id='fk' x='498' y='101' xlink:href='#fk'/><title>References cities ( city_id -> id ) </title></a>
  <a xlink:href='#main_cities.title'><text x='378' y='127'>title</text><text x='495' y='127' text-anchor='end' class='colType'>text</text><title>title text
Наименование</title></a>

</g></svg>

<br/><br/>
<table class='bordered'>
<thead>
<tr><th colspan='4'><a name='countries'>Table countries</a></th></tr>
<tr><td colspan='3'>Содержит наименования стран на русском и английском языках </td></tr>
</thead>
<tbody>
        <tr>
                <td>*</td>
                <td><a name='countries.id     '>id     </a></td>
                <td> smallserial    </td>
                <td> Идентификатор </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='countries.title_en  '>title_en  </a></td>
                <td> text   </td>
                <td> Наименование на английском языке </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='countries.title_ru  '>title_ru  </a></td>
                <td> text   </td>
                <td> Наименование на русском языке </td>
        </tr>
<tr><th colspan='4'><b>Indexes</b></th></tr>
        <tr>              <td>Pk</td><td>pk_countries</td>
                <td> ON id     </td>
                <td>  </td>
        </tr>
</tbody>
</table>

<br/><br/>
<table class='bordered'>
<thead>
<tr><th colspan='4'><a name='cities'>Table cities</a></th></tr>
<tr><td colspan='3'>Содержит наименования всех населенных пунктов (с указанием региона и района, если они есть) по каждой стране </td></tr>
</thead>
<tbody>
        <tr>
                <td>*</td>
                <td><a name='cities.id'>id</a></td>
                <td> bigserial   </td>
                <td> Идентификатор </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='cities.country_id'>country_id</a></td>
                <td> smallserial    </td>
                <td> Идентификатор из таблицы countries (внешний ключ) </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='cities.region'>region</a></td>
                <td> text   DEFO NULL' </td>
                <td> Регион </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='cities.area'>area</a></td>
                <td> text   DEFO 'NULL' </td>
                <td> Район </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='cities.title'>title</a></td>
                <td> text   </td>
                <td> Наименование </td>
        </tr>
<tr><th colspan='4'><b>Indexes</b></th></tr>
        <tr>              <td>Pk</td><td>pk_cities</td>
                <td> ON id</td>
                <td>  </td>
        </tr>
        <tr>              <td> </td><td>idx_cities</td>
                <td> ON country_id</td>
                <td>  </td>
        </tr>
<tr><th colspan='4'><b>Foreign Keys</b></th></tr>
        <tr>
                <td> </td><td>fk_country_id</td>
                <td > ( country_id ) ref <a href='#countries'>countries</a> (id     ) </td>
                <td>  </td>
        </tr>
</tbody>
</table>

<br/><br/>
<table class='bordered'>
<thead>
<tr><th colspan='4'><a name='universities '>Table universities </a></th></tr>
<tr><td colspan='3'>Содержит наименования ВУЗов по каждому городу из таблицы cities, в которых есть ВУЗы </td></tr>
</thead>
<tbody>
        <tr>
                <td>*</td>
                <td><a name='universities .id'>id</a></td>
                <td> bigserial   </td>
                <td> Идентификатор </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='universities .city_id          '>city_id          </a></td>
                <td> bigserial   </td>
                <td> идентификатор из таблицы cities
(внешний ключ) </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='universities .title'>title</a></td>
                <td> text   </td>
                <td> Наименование </td>
        </tr>
<tr><th colspan='4'><b>Indexes</b></th></tr>
        <tr>              <td>Pk</td><td>pk_universities </td>
                <td> ON id</td>
                <td>  </td>
        </tr>
<tr><th colspan='4'><b>Foreign Keys</b></th></tr>
        <tr>
                <td> </td><td>fk_city_id</td>
                <td > ( id ) ref <a href='#cities'>cities</a> (id) </td>
                <td>  </td>
        </tr>
</tbody>
</table>

<br/><br/>
<table class='bordered'>
<thead>
<tr><th colspan='4'><a name='schools'>Table schools</a></th></tr>
<tr><td colspan='3'>Содержит наименования всех школ по каждому городу из таблицы cities, в которых есть школы </td></tr>
</thead>
<tbody>
        <tr>
                <td>*</td>
                <td><a name='schools.id'>id</a></td>
                <td> bigserial   </td>
                <td> Идентификатор </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='schools.city_id          '>city_id          </a></td>
                <td> bigserial   </td>
                <td> Идентификатор из таблицы cities (внешний ключ) </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='schools.title'>title</a></td>
                <td> bigserial   </td>
                <td> Наименование </td>
        </tr>
<tr><th colspan='4'><b>Indexes</b></th></tr>
        <tr>              <td>Pk</td><td>pk_schools</td>
                <td> ON id</td>
                <td>  </td>
        </tr>
        <tr>              <td> </td><td>idx_schools</td>
                <td> ON city_id          </td>
                <td>  </td>
        </tr>
<tr><th colspan='4'><b>Foreign Keys</b></th></tr>
        <tr>
                <td> </td><td>fk_city_id</td>
                <td > ( city_id           ) ref <a href='#cities'>cities</a> (id) </td>
                <td>  </td>
        </tr>
</tbody>
</table>

<br/><br/>
<table class='bordered'>
<thead>
<tr><th colspan='4'><a name='faculties'>Table faculties</a></th></tr>
<tr><td colspan='3'>Содержит наименования факультетов по каждому ВУЗу из таблицы universities </td></tr>
</thead>
<tbody>
        <tr>
                <td>*</td>
                <td><a name='faculties.id'>id</a></td>
                <td> bigserial   </td>
                <td> Идентификатор </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='faculties.university_id  '>university_id  </a></td>
                <td> bigserial   </td>
                <td> Идентификатор из таблицы universities (внешний ключ) </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='faculties.title'>title</a></td>
                <td> text   </td>
                <td> Наименование </td>
        </tr>
<tr><th colspan='4'><b>Indexes</b></th></tr>
        <tr>              <td>Pk</td><td>pk_faculties</td>
                <td> ON id</td>
                <td>  </td>
        </tr>
        <tr>              <td> </td><td>idx_faculties</td>
                <td> ON university_id  </td>
                <td>  </td>
        </tr>
<tr><th colspan='4'><b>Foreign Keys</b></th></tr>
        <tr>
                <td> </td><td>fk_university_id </td>
                <td > ( university_id   ) ref <a href='#universities '>universities </a> (id) </td>
                <td>  </td>
        </tr>
</tbody>
</table>

<br/><br/>
<table class='bordered'>
<thead>
<tr><th colspan='4'><a name='chairs'>Table chairs</a></th></tr>
<tr><td colspan='3'>Содержит наименования кафедр по каждому факультету из таблицы faculties </td></tr>
</thead>
<tbody>
        <tr>
                <td>*</td>
                <td><a name='chairs.id'>id</a></td>
                <td> bigserial   </td>
                <td> Идентификатор </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='chairs.faculty_id          '>faculty_id          </a></td>
                <td> bigserial   </td>
                <td> Идентификатор из таблицы universities (внешний ключ) </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='chairs.title'>title</a></td>
                <td> text   </td>
                <td> Наименование </td>
        </tr>
<tr><th colspan='4'><b>Indexes</b></th></tr>
        <tr>              <td> </td><td>idx_chairs</td>
                <td> ON faculty_id          </td>
                <td>  </td>
        </tr>
        <tr>              <td>Pk</td><td>pk_chairs</td>
                <td> ON id</td>
                <td>  </td>
        </tr>
<tr><th colspan='4'><b>Foreign Keys</b></th></tr>
        <tr>
                <td> </td><td>fk_faculty_id</td>
                <td > ( faculty_id           ) ref <a href='#faculties'>faculties</a> (id) </td>
                <td>  </td>
        </tr>
</tbody>
</table>

<br/><br/>
<table class='bordered'>
<thead>
<tr><th colspan='4'><a name='scientists'>Table scientists</a></th></tr>
<tr><td colspan='3'>Содержит данные пользовательских профилей </td></tr>
</thead>
<tbody>
        <tr>
                <td>*</td>
                <td><a name='scientists.id'>id</a></td>
                <td> bigserial   </td>
                <td> Идентификатор </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.email'>email</a></td>
                <td> text   </td>
                <td> Электронная почта для входа на сайт </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.first_name'>first_name</a></td>
                <td> text   </td>
                <td> Имя </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.last_name'>last_name</a></td>
                <td> text   </td>
                <td> Фамилия </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.middle_name'>middle_name</a></td>
                <td> text   DEFO NULL' </td>
                <td> Отчество </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.dob'>dob</a></td>
                <td> date   </td>
                <td> Дата рождения </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.gender'>gender</a></td>
                <td> text   </td>
                <td> Пол </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.image_small'>image_small</a></td>
                <td> bytea   </td>
                <td> Фото 50x50 </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.image_medium'>image_medium</a></td>
                <td> bytea   </td>
                <td> Фото 100x100 </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.image_large'>image_large</a></td>
                <td> bytea   </td>
                <td> Фото 300x300 </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.location_country'>location_country</a></td>
                <td> text   </td>
                <td> Страна </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.location_city'>location_city</a></td>
                <td> text   </td>
                <td> Город, райн и регион </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.middle_education  '>middle_education  </a></td>
                <td> json   </td>
                <td> Cреднее образование. Структура JSON:
{‘country’:str, ‘city’:str, ‘school’:str, ‘graduation_year’:str}, где
country: страна;
city: город;
school: школа;
graduation_year: год окончания.
Добавить можно только одну школу - текущую или ту, которую уже окончил. Остальные не нужны. </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.high_education'>high_education</a></td>
                <td> json   </td>
                <td> Dысшее образование.
Струткура JSON:
{id: {‘country’:str, ‘city’:str, ‘university’:str, ‘faculty’:str, ‘chair’:str, ‘graduation_year’:str, ‘graduation_level’:str}}, где
id - порядковй номер записи в JSON, если было несколько учебных заведений;
country - страна
city - город;
university - университет;
faculty - факультет;
chair - кафедра;
graduation_year - год окончания;
graduation_level - полученная степень. </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.publications'>publications</a></td>
                <td> text [ ]   </td>
                <td> Публикации. Массив строк. </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.interests'>interests</a></td>
                <td> text   </td>
                <td> Интересы </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.project_ids'>project_ids</a></td>
                <td> bigserial [ ]   </td>
                <td> Проекты, в которых участвует пользователь. Массив идентификаторов. </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.about'>about</a></td>
                <td> text   </td>
                <td> О себе </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.contacts'>contacts</a></td>
                <td> json   </td>
                <td> Контакты. Стурктура JSON : {‘skype’:str, ‘tel’:str, ‘email’:str, ‘address’:str}, где
skype -  skype;
tel - телефон;
address - адрес. </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.desired_project_ids          '>desired_project_ids          </a></td>
                <td> bigserial [ ]   </td>
                <td> Проекты, в которых пользователь хочет участвовать. Массив идентификаторов. </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.managing_project_ids'>managing_project_ids</a></td>
                <td> bigserial [ ]   </td>
                <td> Проекты, в которых пользователь является менеджером - т.е. такиме проекты, которые он сам зарегистрирвоал на сайте. Массив идентификаторов </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.dt_created           '>dt_created           </a></td>
                <td> timestamptz   </td>
                <td> Дата создания аккаунта </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='scientists.dt_last_visit'>dt_last_visit</a></td>
                <td> timestamptz   </td>
                <td> Дата последнего посещения </td>
        </tr>
<tr><th colspan='4'><b>Indexes</b></th></tr>
        <tr>              <td>Pk</td><td>pk_scientists</td>
                <td> ON id</td>
                <td>  </td>
        </tr>
</tbody>
</table>

<br/><br/>
<table class='bordered'>
<thead>
<tr><th colspan='4'><a name='projects'>Table projects</a></th></tr>
<tr><td colspan='3'>Содержит описания проектов </td></tr>
</thead>
<tbody>
        <tr>
                <td>*</td>
                <td><a name='projects.id'>id</a></td>
                <td> bigserial   </td>
                <td> Идентификатор проекта, часть составного первичного  ключа. </td>
        </tr>
        <tr>
                <td>*</td>
                <td><a name='projects.lang'>lang</a></td>
                <td> text   </td>
                <td> Язык конкретного описания проекта (могут быть описания на других языках), часть составного первичного ключа. </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.scientist_id'>scientist_id</a></td>
                <td> bigserial   </td>
                <td> Индентификатор пользователя, добавившего проект </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.research_fields'>research_fields</a></td>
                <td> text [ ]   </td>
                <td> Виды наук. Массив строк. </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.title '>title </a></td>
                <td> text   </td>
                <td> Название проекта </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.description_short'>description_short</a></td>
                <td> text   </td>
                <td> Краткое описание проекта </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.views '>views </a></td>
                <td> bigserial   </td>
                <td> Количество просмотров </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.likes '>likes </a></td>
                <td> bigserial   </td>
                <td> Количество лайков </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.responses '>responses </a></td>
                <td> bigserial [ ]   </td>
                <td> id пользователей, которые откликнулись на вакансии в проекте. Массив идентификаторов. </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.organization_type'>organization_type</a></td>
                <td> text   </td>
                <td> Тип организации, в рамках которой реализуется проект: личный (нет организации), ВУЗ, иная организация. Типы проектов необходимо продумать более детально. </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.organization_location                   '>organization_location                   </a></td>
                <td> json   </td>
                <td> Локация организации. Структура JSON: {‘country’:str, ‘city’:str}, где
country - страна;
city - город

Поле заполняется, если проект не личный. </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.organization_structure'>organization_structure</a></td>
                <td> json   </td>
                <td> Структура организации.
Структура JSON (если выбран ВУЗ): {id:{‘university’:str, ‘faculty’:str, ‘chair’:str}}, где
id -  порядковый номер ВУЗа;
faculty - факультет;
chair - кафедра.
Структура JSON (если выбрана иная организация):
{‘org_name’:str} если выбрана иная организация

Поле заполняется, если проект не личный. </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.start_date'>start_date</a></td>
                <td> date   </td>
                <td> Дата начала проекта </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.end_date'>end_date</a></td>
                <td> date   </td>
                <td> Дата окончания проекта (если есть) </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.objective '>objective </a></td>
                <td> text   </td>
                <td> Цель проекта </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.description_full'>description_full</a></td>
                <td> text   </td>
                <td> Полное описание проекта, проведенных исследований, используемых методов, оборудования, экспериментов и т.п. </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.results'>results</a></td>
                <td> text   </td>
                <td> Достигнутые результаты и их практическое применение  </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.related_data'>related_data</a></td>
                <td> json   </td>
                <td> Дополнительные данные, которые могут быть полезны заинтересовавшимся. Ссылки на сайты, наименования статей и т.п. Структура JSON: {id: {‘source’:str, ‘description’:str}}, где
source - источник данных;
description -  краткое описание информации, которую можно найти в источнике. </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.leader'>leader</a></td>
                <td> json   </td>
                <td> Руководитель проекта.
Структура JSON: {‘first_name’:str, ‘last_name’:str, ‘middle_name’:str}, где
first_name - имя;
last_name - фамилия;
middle_name - отчество. </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.participants '>participants </a></td>
                <td> json   </td>
                <td> Участники проекта.
Структура JSON:
{id: {‘scientist_id’:’bigserial’, ‘role’:str, ‘first_name’:str, ‘last_name’:str, ‘middle_name’str, 'verified’: bool}}, где
id - порядковый номер участника;
scientist_id - идентификатор из таблицы scientists;
role - роль в проекте;
first_name - имя;
last_name - фамилия;
middle_name - отчество;
verified - подтверждена личность участника или нет. </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.missed_participants'>missed_participants</a></td>
                <td> json   </td>
                <td> Кто требется в проект (вакансии).
Структура JSON: {id :{‘role’:str, ‘description’:str}}, где
id - порядковый номер вакансии;
role - наименование вакансии;
description - описание требований к кандидату. </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.tags '>tags </a></td>
                <td> text [ ]   </td>
                <td> Тэги. Массив строк. </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.contact_manager'>contact_manager</a></td>
                <td> text   </td>
                <td> Контактное лицо </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.contacts '>contacts </a></td>
                <td> json   </td>
                <td> Контакты для связи.
Структура JSON:  {‘skype’:str, ‘tel’:str, ‘email’:str, ‘address’:str}, где
skype - skype;
email - адрес электронной почты;
address - почтовый адрес. </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.project_site'>project_site</a></td>
                <td> text   </td>
                <td> Cайт проекта </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.dt_created'>dt_created</a></td>
                <td> timestamptz   </td>
                <td> Дата создания записи о пректе в БД </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='projects.dt_updated'>dt_updated</a></td>
                <td> timestamptz   </td>
                <td> Дата обновления  записи о проекте в БД </td>
        </tr>
<tr><th colspan='4'><b>Indexes</b></th></tr>
        <tr>              <td>Pk</td><td>idx_projects</td>
                <td> ON id, lang</td>
                <td>  </td>
        </tr>
        <tr>              <td> </td><td>idx_projects_0</td>
                <td> ON scientist_id</td>
                <td>  </td>
        </tr>
        <tr>              <td>U</td><td>pk_projects</td>
                <td> ON id</td>
                <td>  </td>
        </tr>
<tr><th colspan='4'><b>Foreign Keys</b></th></tr>
        <tr>
                <td> </td><td>fk_scientist_id</td>
                <td > ( scientist_id ) ref <a href='#scientists'>scientists</a> (id) </td>
                <td>  </td>
        </tr>
</tbody>
</table>

<br/><br/>
<table class='bordered'>
<thead>
<tr><th colspan='4'><a name='languages'>Table languages</a></th></tr>
<tr><td colspan='3'>Содержит двухбуквенные коды языков по ISO 639-1  </td></tr>
</thead>
<tbody>
        <tr>
                <td>*</td>
                <td><a name='languages.id     '>id     </a></td>
                <td> smallserial    </td>
                <td> Идентификатор </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='languages.title'>title</a></td>
                <td> text   </td>
                <td> Двухбуквенные коды языков
по ISO 639-1 http://ru.wiktionary.org/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D1%81%D0%BB%D0%BE%D0%B2%D0%B0%D1%80%D1%8C:ISO_639  </td>
        </tr>
<tr><th colspan='4'><b>Indexes</b></th></tr>
        <tr>              <td>Pk</td><td>pk_languages</td>
                <td> ON id     </td>
                <td>  </td>
        </tr>
</tbody>
</table>

<br/><br/>
<table class='bordered'>
<thead>
<tr><th colspan='4'><a name='main_cities'>Table main_cities</a></th></tr>
<tr><td colspan='3'>Содержит наименования крупнейших городов по каждой стране из таблицы countries </td></tr>
</thead>
<tbody>
        <tr>
                <td>*</td>
                <td><a name='main_cities.id'>id</a></td>
                <td> integer   </td>
                <td> Идентификатор </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='main_cities.country_id'>country_id</a></td>
                <td> smallserial    </td>
                <td> Идентификатор из таблицы countries (внешний ключ) </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='main_cities.city_id'>city_id</a></td>
                <td> bigserial   </td>
                <td> Идентификатор из таблицы cities (внешний ключ) </td>
        </tr>
        <tr>
                <td> </td>
                <td><a name='main_cities.title'>title</a></td>
                <td> text   </td>
                <td> Наименование </td>
        </tr>
<tr><th colspan='4'><b>Indexes</b></th></tr>
        <tr>              <td>Pk</td><td>pk_main_cities</td>
                <td> ON id</td>
                <td>  </td>
        </tr>
        <tr>              <td> </td><td>idx_main_cities</td>
                <td> ON city_id</td>
                <td>  </td>
        </tr>
<tr><th colspan='4'><b>Foreign Keys</b></th></tr>
        <tr>
                <td> </td><td>fk_country_id</td>
                <td > ( country_id ) ref <a href='#countries'>countries</a> (id     ) </td>
                <td>  </td>
        </tr>
        <tr>
                <td> </td><td>fk_city_id</td>
                <td > ( city_id ) ref <a href='#cities'>cities</a> (id) </td>
                <td>  </td>
        </tr>
</tbody>
</table>

</body></html>