<?xml version="1.0" encoding="UTF-8"?>
<vosi:tableset xmlns:vosi="http://www.ivoa.net/xml/VOSITables/v1.0" xmlns:vod="http://www.ivoa.net/xml/VODataService/v1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ivoa.net/xml/VODataService/v1.1 http://www.ivoa.net/xml/VODataService/v1.1 http://www.ivoa.net/xml/VOSITables/v1.0 http://vo.ari.uni-heidelberg.de/docs/schemata/VOSITables-v1.0.xsd">
	<!-- TODO
	     DEFINE HERE ALL SCHEMAS, TABLES AND COLUMNS YOU WANT TO PUBLISH
	     Below is an empty pattern of a schema containing only one table, containing itself only one column.
	     You are free to add more schemas, tables and columns, and even to declare some foreign keys. -->
	<schema>
		<name></name>  <!-- REQUIRED -->
		<title></title>
		<description></description>
		<utype></utype>
        
		<!-- Sequence of 1 to * tables -->
		<table type="">    <!-- The "type" attribute is optional. Possible values: "output", "base_table" or "view". Default value: "base_table". -->
			<name></name>  <!-- REQUIRED This name must be unique over all the tables declared in this file. Thus, to make it unique, you should prefix it with the schema name. -->
			<title></title>
			<description></description>
			<utype></utype>
            
			<!-- Sequence of 0 to * columns -->
			<column std="">    <!-- The "std" attribute is optional and indicates whether this column is part of a standard. Possible values: "true" or "false". Default value: "false". -->
				<name></name>  <!-- REQUIRED -->
				<description></description>
				<unit></unit>
				<ucd></ucd>
				<utype></utype>
				<dataType xsi:type="vod:TAPType" size="">  <!-- REQUIRED node --> <!-- The "size" attribute is optional and represents the length of the fixed-length value (e.g. CHAR, BINARY). -->
			        <!-- One of the following values: BOOLEAN, SMALLINT, INTEGER, BIGINT, REAL, DOUBLE, TIMESTAMP, CHAR, VARCHAR, BINARY, VARBINARY, POINT, REGION, CLOB, BLOB. -->
				</dataType>
				<!-- NOTE:
				     The node "dataType" can also have another type: "vod:VOTableType".
				     In this case, it is exactly the type that would be set for a VOTable column.
				     Thus, it may have the following attributes: "arraysize" and "xtype".
				     And its value must be a VOTable type (e.g. boolean, bit, unsignedByte, short,
				     int, long, char, unicodeChar, float, double, floatComplex, doubleComplex). -->

				<!-- Sequence of 0 to * flags -->
				<flag>
					<!-- One value among:
					     "indexed" (the column is indexed in the DB),
					     "primary" (this column is part of the primary key)
					     "nullable" (this column may have a NULL value). -->
				</flag>
			</column>
			
			<!-- Sequence of 0 to * foreign keys -->
			<foreignKey>
				<targetTable></targetTable>  <!-- REQUIRED This table name must be exactly as defined in the table node <name>. -->
				<description></description>
				<utype></utype>
				
				<!-- Sequence of 1 to * key columns -->
				<fkColumn>
					<fromColumn></fromColumn>      <!-- REQUIRED -->
					<targetColumn></targetColumn>  <!-- REQUIRED -->
				</fkColumn>
			</foreignKey>
		</table>
	</schema>
	
	<!-- TAP_SCHEMA DEFINITION
	     This part should not be changed, except if you have additional tables and/or columns to make public. -->
	<schema>
		<name>TAP_SCHEMA</name>
		<description>Set of tables listing and describing the schemas, tables and columns published in this TAP service.</description>
		<table>
			<name>TAP_SCHEMA.schemas</name>
			<description>List of schemas published in this TAP service.</description>
			<column std="true">
				<name>schema_name</name>
				<description>schema name, possibly qualified</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
				<flag>indexed</flag>
				<flag>primary</flag>
			</column>
			<column std="true">
				<name>description</name>
				<description>brief description of schema</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
			</column>
			<column std="true">
				<name>utype</name>
				<description>UTYPE if schema corresponds to a data model</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
			</column>
		</table>
		<table>
			<name>TAP_SCHEMA.tables</name>
			<description>List of tables published in this TAP service.</description>
			<column std="true">
				<name>schema_name</name>
				<description>the schema name from TAP_SCHEMA.schemas</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
				<flag>indexed</flag>
				<flag>primary</flag>
			</column>
			<column std="true">
				<name>table_name</name>
				<description>table name as it should be used in queries</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
				<flag>indexed</flag>
				<flag>primary</flag>
			</column>
			<column std="true">
				<name>table_type</name>
				<description>one of: table, view</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
			</column>
			<column std="true">
				<name>description</name>
				<description>brief description of table</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
			</column>
			<column std="true">
				<name>utype</name>
				<description>UTYPE if table corresponds to a data model</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
			</column>
		</table>
		<table>
			<name>TAP_SCHEMA.columns</name>
			<description>List of columns of all tables listed in TAP_SCHEMA.TABLES and published in this TAP service.</description>
			<column std="true">
				<name>table_name</name>
				<description>table name from TAP_SCHEMA.tables</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
				<flag>indexed</flag>
				<flag>primary</flag>
			</column>
			<column std="true">
				<name>column_name</name>
				<description>column name</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
				<flag>indexed</flag>
				<flag>primary</flag>
			</column>
			<column std="true">
				<name>description</name>
				<description>brief description of column</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
			</column>
			<column std="true">
				<name>unit</name>
				<description>unit in VO standard format</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
			</column>
			<column std="true">
				<name>ucd</name>
				<description>UCD of column if any</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
			</column>
			<column std="true">
				<name>utype</name>
				<description>UTYPE of column if any</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
			</column>
			<column std="true">
				<name>datatype</name>
				<description>ADQL datatype as in section 2.5</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
			</column>
			<column std="true">
				<name>size</name>
				<description>length of variable length datatypes</description>
				<dataType xsi:type="vod:TAPType">INTEGER</dataType>
			</column>
			<column std="true">
				<name>principal</name>
				<description>a principal column; 1 means true, 0 means false</description>
				<dataType xsi:type="vod:TAPType">INTEGER</dataType>
			</column>
			<column std="true">
				<name>indexed</name>
				<description>an indexed column; 1 means true, 0 means false</description>
				<dataType xsi:type="vod:TAPType">INTEGER</dataType>
			</column>
			<column std="true">
				<name>std</name>
				<description>a standard column; 1 means true, 0 means false</description>
				<dataType xsi:type="vod:TAPType">INTEGER</dataType>
			</column>
		</table>
		<table>
			<name>TAP_SCHEMA.keys</name>
			<description>List all foreign keys but provides just the tables linked by the foreign key. To know which columns of these tables are linked, see in TAP_SCHEMA.key_columns using the key_id.</description>
			<column std="true">
				<name>key_id</name>
				<description>unique key identifier</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
				<flag>indexed</flag>
				<flag>primary</flag>
			</column>
			<column std="true">
				<name>from_table</name>
				<description>fully qualified table name</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
			</column>
			<column std="true">
				<name>target_table</name>
				<description>fully qualified table name</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
			</column>
			<column std="true">
				<name>description</name>
				<description>description of this key</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
			</column>
			<column std="true">
				<name>utype</name>
				<description>utype of this key</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
			</column>
		</table>
		<table>
			<name>TAP_SCHEMA.key_columns</name>
			<description>List all foreign keys but provides just the columns linked by the foreign key. To know the table of these columns, see in TAP_SCHEMA.keys using the key_id.</description>
			<column std="true">
				<name>key_id</name>
				<description>unique key identifier</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
				<flag>indexed</flag>
				<flag>primary</flag>
			</column>
			<column std="true">
				<name>from_column</name>
				<description>key column name in the from_table</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
			</column>
			<column std="true">
				<name>target_column</name>
				<description>key column name in the target_table</description>
				<dataType xsi:type="vod:TAPType">VARCHAR</dataType>
			</column>
		</table>
	</schema>
</vosi:tableset>
