Code Search for Developers
 
 
  

iticket-schema.xml from iTicket at Krugle


Show iticket-schema.xml syntax highlighted

<!DOCTYPE database SYSTEM
 "http://db.apache.org/torque/dtd/database_3_2.dtd">
<database name="iticket" defaultIdMethod="idbroker">
	<table name="passenger" description="Passenger">
		<column name="passenger_id" required="true" primaryKey="true"
			type="INTEGER" description="Passenger Id" />
		<column name="firstname" required="true" type="VARCHAR"
			size="128" description="Firstname" />
		<column name="lastname" required="true" type="VARCHAR"
			size="128" description="Lastname" />
	</table>
	<table name="booker" description="Bookers">
		<column name="booker_id" required="true" primaryKey="true"
			type="INTEGER" description="Booker Id" />
		<column name="passenger_id" required="true" type="INTEGER"
			description="Foreign Key passenger" />

		<column name="username" required="true" type="VARCHAR"
			size="128" description="Username" />
		<column name="password" required="true" type="VARCHAR" size="32"
			description="Password" />
		<unique>
			<unique-column name="username" />
		</unique>
		<foreign-key foreignTable="passenger">
			<reference local="passenger_id" foreign="passenger_id" />
		</foreign-key>
	</table>
	<table name="airport" description="Airport">
		<column name="airport_id" required="true" primaryKey="true"
			type="INTEGER" description="Airport Id" />
		<column name="name" required="true" type="VARCHAR" size="128"
			description="Airport name" />
		<column name="timezone" required="true" type="INTEGER"
			size="128" description="Firstname" />
		<unique>
			<unique-column name="name" />
		</unique>
	</table>
	<table name="aircraftdescription"
		description="Aircraft Description table">
		<column name="aircraftdescription_id" required="true"
			primaryKey="true" type="INTEGER"
			description="Aircraft Description Id" />
		<column name="name" required="true" type="VARCHAR" size="128"
			description="Aircraft name" />
	</table>

	<table name="carrier" description="Carrier table">
		<column name="carrier_id" required="true" primaryKey="true"
			type="INTEGER" description="Carrier Id" />
		<column name="name" required="true" type="VARCHAR" size="128"
			description="Carrier name" />
	</table>


	<table name="aircraft" description="Aircraft table">
		<column name="aircraft_id" required="true" primaryKey="true"
			type="INTEGER" description="Aircraft Id" />
		<column name="carrier_id" required="true" type="INTEGER"
			description="Carrier Foreign Key" />
		<column name="aircraftdescription_id" required="true"
			type="INTEGER" description="Aircraft Description Foreign key" />

		<foreign-key foreignTable="carrier">
			<reference local="carrier_id" foreign="carrier_id" />
		</foreign-key>
		<foreign-key foreignTable="aircraftdescription">
			<reference local="aircraftdescription_id"
				foreign="aircraftdescription_id" />
		</foreign-key>
	</table>

	<table name="flight" description="Flight table">
		<column name="flight_id" required="true" primaryKey="true"
			type="INTEGER" description="Flight Id" />
		<column name="flightnumber_id" required="true" type="INTEGER"
			description="Foreign key flight number" />
		<column name="aircraft_id" required="true" type="INTEGER"
			description="Foreign key Aircraft Id" />

		<foreign-key foreignTable="flightnumber">
			<reference local="flightnumber_id" foreign="flightnumber_id" />
		</foreign-key>
		<foreign-key foreignTable="aircraft">
			<reference local="aircraft_id" foreign="aircraft_id" />
		</foreign-key>
	</table>
	<table name="flightnumber" description="Flightnumber table">
		<column name="flightnumber_id" required="true" primaryKey="true"
			type="INTEGER" description="Flightnumber Id" />
		<column name="flightnumber" required="true" type="VARCHAR"
			size="255" description="Flight number" />
		<column name="departure_id" required="true" type="INTEGER"
			description="Foreign key departure airport" />
		<column name="destination_id" required="true" type="INTEGER"
			description="Foreign Key destination airport" />

		<foreign-key foreignTable="airport">
			<reference local="departure_id" foreign="airport_id" />
		</foreign-key>
		<foreign-key foreignTable="airport">
			<reference local="destination_id" foreign="airport_id" />
		</foreign-key>
	</table>
</database>



See more files for this project here

iTicket

iTicket is an application for booking specific flights. On a quick-check-in terminal the passenger could easily withdraw the ticket.

Project homepage: http://sourceforge.net/projects/iticket
Programming language(s): Java,JSP,XML
License: lgpl21

  id-table-schema.xml
  iticket-schema.xml