Location: PHPKode > projects > Terra-Terra, A Virtual Operating System > terra-terra.0.0.5/install/TTdb.xml
<!DOCTYPE TTDBASE SYSTEM "../xml/TTdbase.dtd">
<TTSCHEME VERSION="0.1">
	<TABLE NAME="applic_area">
		<FIELD NAME="aid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="wid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>

		<INDEX TYPE="KEY">
			<COL>aid</COL>
		</INDEX>
		<INDEX TYPE="KEY">
			<COL>wid</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="applic_privs">
		<FIELD NAME="aid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="gid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="mask" TYPE="INT" SIZE="5">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="1" />
		</FIELD>

		<INDEX TYPE="KEY">
			<COL>aid</COL>
		</INDEX>
		<INDEX TYPE="KEY">
			<COL>gid</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="application">
		<FIELD NAME="applicname" TYPE="VARCHAR" SIZE="12">
			<NOTNULL />
		</FIELD>
		<FIELD NAME="description" TYPE="TEXT">
		</FIELD>
		<FIELD NAME="aid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<AUTOINC />
		</FIELD>
		<FIELD NAME="enabled" TYPE="ENUM">
			<OPTION>Y</OPTION>
			<OPTION>N</OPTION>
			<DEFAULT VALUE="Y" />
		</FIELD>

		<INDEX TYPE="UNIQUE">
			<COL>aid</COL>
		</INDEX>
		<INDEX TYPE="KEY">
			<COL>applicname</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="area_display">
		<FIELD NAME="wid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="embedded" TYPE="INT" SIZE="1">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="visible" TYPE="ENUM">
			<OPTION>0</OPTION>
			<OPTION>1</OPTION>
			<OPTION>2</OPTION>
			<OPTION>6</OPTION>
			<NOTNULL />
			<DEFAULT VALUE="2" />
		</FIELD>
		<FIELD NAME="hposition" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="vposition" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="halignment" TYPE="ENUM">
			<OPTION>left</OPTION>
			<OPTION>center</OPTION>
			<OPTION>right</OPTION>
			<NOTNULL />
			<DEFAULT VALUE="left" />
		</FIELD>
		<FIELD NAME="valignment" TYPE="ENUM">
			<OPTION>top</OPTION>
			<OPTION>center</OPTION>
			<OPTION>bottom</OPTION>
			<NOTNULL />
			<DEFAULT VALUE="top" />
		</FIELD>
		<FIELD NAME="style_width" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="style_height" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="shadable" TYPE="INT" SIZE="1">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="1" />
		</FIELD>
		<FIELD NAME="maximizable" TYPE="INT" SIZE="1">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="1" />
		</FIELD>
		<FIELD NAME="closable" TYPE="INT" SIZE="1">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="1" />
		</FIELD>
		<FIELD NAME="movable" TYPE="INT" SIZE="1">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="1" />
		</FIELD>
		<FIELD NAME="reloadable" TYPE="INT" SIZE="1">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="1" />
		</FIELD>
		<FIELD NAME="resizable" TYPE="INT" SIZE="1">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="1" />
		</FIELD>
		<FIELD NAME="display_bars" TYPE="INT" SIZE="1">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="1" />
		</FIELD>
		<FIELD NAME="always_on_top" TYPE="INT" SIZE="1">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>

		<INDEX TYPE="PRIMARY">
			<COL>wid</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="blocked_users">
		<FIELD NAME="uid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="blocked" TYPE="DATETIME">
		</FIELD>
		<FIELD NAME="block_reason" TYPE="VARCHAR" SIZE="255">
		</FIELD>

		<INDEX TYPE="KEY">
			<COL>uid</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="configuration">
		<FIELD NAME="item" TYPE="VARCHAR" SIZE="60">
			<NOTNULL />
		</FIELD>
		<FIELD NAME="value" TYPE="VARCHAR" SIZE="255">
			<NOTNULL />
		</FIELD>

		<INDEX TYPE="PRIMARY">
			<COL>item</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="group">
		<FIELD NAME="groupname" TYPE="VARCHAR" SIZE="12">
			<NOTNULL />
		</FIELD>
		<FIELD NAME="gid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<AUTOINC />
		</FIELD>

		<INDEX TYPE="PRIMARY">
			<COL>gid</COL>
		</INDEX>
		<INDEX TYPE="KEY">
			<COL>groupname</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="languages">
		<FIELD NAME="code" TYPE="VARCHAR" SIZE="5">
			<NOTNULL />
		</FIELD>
		<FIELD NAME="description" TYPE="VARCHAR" SIZE="40">
		</FIELD>
		<FIELD NAME="active" TYPE="ENUM">
			<OPTION>Y</OPTION>
			<OPTION>N</OPTION>
			<DEFAULT VALUE="N" />
		</FIELD>

		<INDEX TYPE="PRIMARY">
			<COL>code</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="link_msgs">
		<FIELD NAME="mid" TYPE="INT" SIZE="10">
			<UNSIGNED />
				<NOTNULL />
		<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="uid" TYPE="INT" SIZE="10">
			<UNSIGNED />
		</FIELD>
		<FIELD NAME="gid" TYPE="INT" SIZE="10">
			<UNSIGNED />
		</FIELD>

		<INDEX TYPE="PRIMARY">
			<COL>mid</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="mail_text_def">
		<FIELD NAME="code" TYPE="VARCHAR" SIZE="60">
			<NOTNULL />
		</FIELD>
		<FIELD NAME="subject" TYPE="VARCHAR" SIZE="255">
			<NOTNULL />
		</FIELD>
		<FIELD NAME="message" TYPE="TEXT">
			<NOTNULL />
		</FIELD>

		<INDEX TYPE="PRIMARY">
			<COL>code</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="messages">
		<FIELD NAME="id" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<AUTOINC />
		</FIELD>
		<FIELD NAME="text" TYPE="TEXT">
		</FIELD>
		<FIELD NAME="date" TYPE="DATETIME">
		</FIELD>
		<FIELD NAME="expires" TYPE="DATETIME">
		</FIELD>
		<FIELD NAME="posted_by" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>

		<INDEX TYPE="PRIMARY">
			<COL>id</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="profile_area_display">
		<FIELD NAME="uid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="pid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="wid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="hposition" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="vposition" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="halignment" TYPE="ENUM">
			<OPTION>left</OPTION>
			<OPTION>center</OPTION>
			<OPTION>right</OPTION>
			<NOTNULL />
			<DEFAULT VALUE="left" />
		</FIELD>
		<FIELD NAME="valignment" TYPE="ENUM">
			<OPTION>top</OPTION>
			<OPTION>center</OPTION>
			<OPTION>bottom</OPTION>
			<NOTNULL />
			<DEFAULT VALUE="top" />
		</FIELD>
		<FIELD NAME="style_width" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="style_height" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="visible" TYPE="ENUM">
			<OPTION>0</OPTION>
			<OPTION>1</OPTION>
			<OPTION>2</OPTION>
			<OPTION>6</OPTION>
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>

		<INDEX TYPE="PRIMARY">
			<COL>uid</COL>
			<COL>pid</COL>
			<COL>wid</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="prompts_def">
		<FIELD NAME="code" TYPE="VARCHAR" SIZE="25">
			<NOTNULL />
		</FIELD>
		<FIELD NAME="prompt" TYPE="VARCHAR" SIZE="128">
			<NOTNULL />
		</FIELD>

		<INDEX TYPE="PRIMARY">
			<COL>code</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="read_msgs">
		<FIELD NAME="uid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="mid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="readtm" TYPE="DATETIME">
		</FIELD>

		<INDEX TYPE="PRIMARY">
			<COL>uid</COL>
			<COL>mid</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="themes">
		<FIELD NAME="code" TYPE="VARCHAR" SIZE="16">
			<NOTNULL />
		</FIELD>
		<FIELD NAME="description" TYPE="VARCHAR" SIZE="40">
		</FIELD>
		<FIELD NAME="enabled" TYPE="ENUM">
			<OPTION>Y</OPTION>
			<OPTION>N</OPTION>
			<DEFAULT VALUE="Y" />
		</FIELD>
		<FIELD NAME="gid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>

		<INDEX TYPE="PRIMARY">
			<COL>code</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="user">
		<FIELD NAME="username" TYPE="VARCHAR" SIZE="12">
			<NOTNULL />
		</FIELD>
		<FIELD NAME="uid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<AUTOINC />
		</FIELD>
		<FIELD NAME="gid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
		<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="lastlogin" TYPE="DATETIME">
		</FIELD>
		<FIELD NAME="pwdchange" TYPE="DATETIME">
		</FIELD>
		<FIELD NAME="pwdlifetime" TYPE="INT" SIZE="11">
		</FIELD>
		<FIELD NAME="preexpired" TYPE="ENUM">
			<OPTION>Y</OPTION>
			<OPTION>N</OPTION>
			<DEFAULT VALUE="Y" />
		</FIELD>
		<FIELD NAME="login_fails" TYPE="INT" SIZE="3">
			<UNSIGNED />
		<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="max_sessions" TYPE="INT" SIZE="3">
			<UNSIGNED />
			<DEFAULT VALUE="1" />
		</FIELD>
		<FIELD NAME="password" TYPE="VARCHAR" SIZE="64">
			<NOTNULL />
		</FIELD>

		<INDEX TYPE="PRIMARY">
			<COL>uid</COL>
		</INDEX>
		<INDEX TYPE="KEY">
			<COL>username</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="usergroup">
		<FIELD NAME="uid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="gid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="pid" TYPE="INT" SIZE="10">
			<UNSIGNED />
		</FIELD>
		<FIELD NAME="member" TYPE="ENUM">
			<OPTION>Y</OPTION>
			<OPTION>N</OPTION>
			<DEFAULT VALUE="Y" />
		</FIELD>

		<INDEX TYPE="KEY">
			<COL>uid</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="userinfo">
		<FIELD NAME="uid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="email" TYPE="VARCHAR" SIZE="60">
			<NOTNULL />
		</FIELD>
		<FIELD NAME="first_name" TYPE="VARCHAR" SIZE="40">
			<NOTNULL />
		</FIELD>
		<FIELD NAME="middle_name" TYPE="VARCHAR" SIZE="20">
		</FIELD>
		<FIELD NAME="last_name" TYPE="VARCHAR" SIZE="40">
			<NOTNULL />
		</FIELD>
		<FIELD NAME="address_1" TYPE="VARCHAR" SIZE="40">
		</FIELD>
		<FIELD NAME="address_2" TYPE="VARCHAR" SIZE="40">
		</FIELD>
		<FIELD NAME="state" TYPE="VARCHAR" SIZE="10">
		</FIELD>
		<FIELD NAME="zip" TYPE="VARCHAR" SIZE="10">
		</FIELD>
		<FIELD NAME="city" TYPE="VARCHAR" SIZE="40">
		</FIELD>
		<FIELD NAME="country" TYPE="VARCHAR" SIZE="40">
		</FIELD>
		<FIELD NAME="phone_home" TYPE="VARCHAR" SIZE="25">
		</FIELD>
		<FIELD NAME="phone_work" TYPE="VARCHAR" SIZE="25">
		</FIELD>
		<FIELD NAME="phone_mobile" TYPE="VARCHAR" SIZE="25">
		</FIELD>
		<FIELD NAME="fax" TYPE="VARCHAR" SIZE="25">
		</FIELD>
		<FIELD NAME="birthdate" TYPE="DATE">
		</FIELD>
		<FIELD NAME="url" TYPE="VARCHAR" SIZE="60">
		</FIELD>

		<INDEX TYPE="PRIMARY">
			<COL>uid</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="userprofile">
		<FIELD NAME="uid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="pid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="timeout" TYPE="INT" SIZE="11">
			<DEFAULT VALUE="30" />
		</FIELD>
		<FIELD NAME="flags" TYPE="SET">
			<OPTION>disuser</OPTION>
			<OPTION>autologout</OPTION>
			<OPTION>volatile</OPTION>
			<DEFAULT VALUE="autologout" />
		</FIELD>
		<FIELD NAME="language" TYPE="VARCHAR" SIZE="5">
			<NOTNULL />
			<DEFAULT VALUE="def" />
		</FIELD>
		<FIELD NAME="theme" TYPE="VARCHAR" SIZE="16">
		</FIELD>

		<INDEX TYPE="PRIMARY">
			<COL>uid</COL>
			<COL>pid</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="usersession">
		<FIELD NAME="sid" TYPE="VARCHAR" SIZE="255">
			<NOTNULL />
		</FIELD>
		<FIELD NAME="uid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="pid" TYPE="INT" SIZE="10">
			<UNSIGNED />
		</FIELD>
		<FIELD NAME="login" TYPE="DATETIME">
			<NOTNULL />
			<DEFAULT VALUE="0000-00-00 00:00:00" />
		</FIELD>
		<FIELD NAME="logout" TYPE="DATETIME">
		</FIELD>
		<FIELD NAME="timestamp" TYPE="TIMESTAMP">
		</FIELD>
		<FIELD NAME="aid" TYPE="INT" SIZE="10">
			<UNSIGNED />
		</FIELD>
		<FIELD NAME="source" TYPE="VARCHAR" SIZE="15">
			<NOTNULL />
			<DEFAULT VALUE="000.000.000.000" />
		</FIELD>
		<FIELD NAME="session_object" TYPE="BLOB">
		</FIELD>

		<INDEX TYPE="PRIMARY">
			<COL>sid</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="usersource">
		<FIELD NAME="uid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="ip" TYPE="VARCHAR" SIZE="15">
		</FIELD>
		<FIELD NAME="host" TYPE="VARCHAR" SIZE="80">
		</FIELD>
		<FIELD NAME="pid" TYPE="INT" SIZE="10">
			<UNSIGNED />
		</FIELD>

		<INDEX TYPE="KEY">
			<COL>uid</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="wa_text_def">
		<FIELD NAME="code" TYPE="VARCHAR" SIZE="24">
			<NOTNULL />
		</FIELD>
		<FIELD NAME="wid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="0" />
		</FIELD>
		<FIELD NAME="display_order" TYPE="INT" SIZE="3">
			<UNSIGNED />
			<NOTNULL />
			<DEFAULT VALUE="255" />
		</FIELD>
		<FIELD NAME="textvalue" TYPE="TEXT">
		</FIELD>
		<FIELD NAME="owner" TYPE="INT" SIZE="10">
			<UNSIGNED />
		</FIELD>
		<FIELD NAME="enabled" TYPE="ENUM">
			<OPTION>Y</OPTION>
			<OPTION>N</OPTION>
			<DEFAULT VALUE="Y" />
		</FIELD>

		<INDEX TYPE="PRIMARY">
			<COL>code</COL>
			<COL>wid</COL>
		</INDEX>
		<INDEX TYPE="KEY">
			<COL>code</COL>
		</INDEX>
		<INDEX TYPE="KEY">
			<COL>owner</COL>
		</INDEX>
	</TABLE>

	<TABLE NAME="workarea">
		<FIELD NAME="areaname" TYPE="VARCHAR" SIZE="16">
			<NOTNULL />
		</FIELD>
		<FIELD NAME="wid" TYPE="INT" SIZE="10">
			<UNSIGNED />
			<NOTNULL />
			<AUTOINC />
		</FIELD>
		<FIELD NAME="title" TYPE="VARCHAR" SIZE="40">
		</FIELD>
		<FIELD NAME="url" TYPE="VARCHAR" SIZE="255">
		</FIELD>
		<FIELD NAME="enabled" TYPE="ENUM">
			<OPTION>Y</OPTION>
			<OPTION>N</OPTION>
			<DEFAULT VALUE="Y" />
		</FIELD>
		<FIELD NAME="areatype" TYPE="VARCHAR" SIZE="1">
		</FIELD>
		<FIELD NAME="mwid" TYPE="INT" SIZE="10">
			<UNSIGNED />
		</FIELD>

		<INDEX TYPE="PRIMARY">
			<COL>wid</COL>
		</INDEX>
		<INDEX TYPE="UNIQUE">
			<COL>areaname</COL>
		</INDEX>
	</TABLE>
</TTSCHEME>
Return current item: Terra-Terra, A Virtual Operating System