<tables>
	<!--	=============================================================
			DbWrappers: Example table definitions
		=============================================================
			Copyright (C) 2002 Phillip Pearson, pp@myelin.co.nz
			http://www.myelin.co.nz/dbwrappers/
		
		All the database tables are defined in this file.  Each
		table has a <table> element, which specifies:
		
			name: the table name in the database
			
			basename: the name all the database classes will start 
			with.  For example, a basename of 'Foo' will result in 
			classes called FooTable, FooReader and FooRow.
			
			namespace: the namespace for the generated code will be 
			in.  Pick something within your project.  Each table can 
			be in a different namespace.
		
		Each table has a number of fields, which live within a <fields> 
		element.  Each field is a <field> element with no children and 
		the following attributes:
		
			name: the database name for the field
			
			dbtype: the database type for the field.  These are
			the text types that Access uses: AutoNumber, Text, Memo,
			Number, Boolean etc.
			
			propname: the name for the property to use to access 
			this field.  This attribute is optional, but if you 
			leave it out, you won't be able to get at the data.
			
		Also, you need an <indices> element, with an <index> element for 
		your primary key.  Currently you can only have one key (joins 
		etc aren't supported yet).  The <index> element needs the 
		following attributes:
		
			name: the name of your primary key field
			
			type: this should always be 'pkey'.  More types coming 
			later.
			
		Here are a couple of example tables, from a fictional library 
		tracking application:
		
	-->
	
	<!--	Books
	
		One row in this table represents a single book.
		A book consists of a number of pages.
		A book has a globally unique ID, the ISBN, and
		metadata: title, author etc.
	-->
	<table name="tblBooks" basename="Book" namespace="Example.Data">
		<fields>
			<field name="bookId" dbtype="AutoNumber" propname="BookId" />
			<field name="bookIsbn" dbtype="Text" propname="Isbn" />
			<field name="bookAuthor" dbtype="Memo" propname="Author" />
			<field name="bookTitle" dbtype="Memo" propname="Title" />
			<field name="bookYear" dbtype="Number" propname="Year" />
		</fields>
		<indices>
			<index name="bookId" type="pkey" />
		</indices>
	</table>
	<!--	Pages
	
		One row in this table represents a single page.
	-->
	<table name="tblPages" basename="Page" namespace="Example.Data">
		<fields>
			<field name="pageId" dbtype="AutoNumber" propname="PageId" />
			<field name="bookId" dbtype="Number" propname="BookId" />
			<field name="pageText" dbtype="Memo" propname="Text" />
		</fields>
		<indices>
			<index name="pageId" type="pkey" />
		</indices>
	</table>
</tables>

