SWADroid/res/xml/tables.xml
Antonio Aguilera 8727a61f52 Integrated ZXing into SWADroid project
Signed-off-by: Antonio Aguilera <aguilerin@gmail.com>
2012-04-18 13:22:10 +02:00

253 lines
6.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<database
name="swadroid_db"
version="10" >
<table
name="courses"
to-string="%name%" >
<field
name="id"
obligatory="true"
type="long" />
<field
name="name"
obligatory="true"
type="text" />
<field
name="userRole"
new-in-version="9"
obligatory="true"
type="integer" />
</table>
<table
name="notifications"
new-in-version="3"
to-string="%name%" >
<field
name="id"
obligatory="true"
type="long" />
<field
name="eventType"
obligatory="true"
type="text" />
<field
name="eventTime"
obligatory="true"
type="text" />
<field
name="userSurname1"
obligatory="true"
type="text" />
<field
name="userSurname2"
obligatory="true"
type="text" />
<field
name="userFirstname"
obligatory="true"
type="text" />
<field
name="location"
obligatory="true"
type="text" />
<field
name="summary"
obligatory="true"
type="text" />
<field
name="status"
new-in-version="4"
obligatory="true"
type="text" />
<field
name="content"
new-in-version="5"
obligatory="true"
type="text" />
</table>
<table
name="tst_config"
new-in-version="6"
to-string="%name%" >
<field
name="id"
obligatory="true"
type="long" />
<field
name="min"
obligatory="true"
type="integer" />
<field
name="def"
obligatory="true"
type="integer" />
<field
name="max"
obligatory="true"
type="integer" />
<field
name="feedback"
obligatory="true"
type="text" />
<field
name="editTime"
new-in-version="7"
obligatory="true"
type="text" />
</table>
<table
name="tst_questions"
new-in-version="6"
to-string="%name%" >
<field
name="id"
obligatory="true"
type="long" />
<field
name="ansType"
obligatory="true"
type="text" />
<field
name="shuffle"
obligatory="true"
type="text" />
<field
name="stem"
obligatory="true"
type="text" />
</table>
<table
name="tst_answers"
new-in-version="6"
to-string="%name%" >
<field
name="ansInd"
new-in-version="8"
obligatory="true"
type="integer" />
<field
name="answer"
obligatory="true"
type="text" />
<field
name="correct"
obligatory="true"
type="text" />
</table>
<table
name="tst_tags"
new-in-version="6"
to-string="%name%" >
<field
name="id"
obligatory="true"
type="long" />
<field
name="tagTxt"
obligatory="true"
type="text" />
</table>
<table
name="tst_question_tags"
new-in-version="6"
to-string="%name%" >
<field
name="qstCod"
foreign-table="tst_questions"
obligatory="true"
type="foreign-key" />
<field
name="tagCod"
foreign-table="tst_tags"
obligatory="true"
type="foreign-key" />
<field
name="tagInd"
type="integer" />
</table>
<table
name="tst_questions_course"
new-in-version="6"
to-string="%name%" >
<field
name="qstCod"
foreign-table="tst_questions"
obligatory="true"
type="foreign-key" />
<field
name="crsCod"
foreign-table="courses"
obligatory="true"
type="foreign-key" />
</table>
<table
name="tst_question_answers"
new-in-version="6"
to-string="%name%" >
<field
name="qstCod"
foreign-table="tst_questions"
obligatory="true"
type="foreign-key" />
<field
name="ansCod"
foreign-table="tst_answers"
obligatory="true"
type="foreign-key" />
</table>
<table
name="users"
new-in-version="10"
to-string="%name%" >
<field
name="userCode"
obligatory="true"
type="integer" />
<field
name="userID"
obligatory="true"
type="text" />
<field
name="userNickname"
obligatory="true"
type="text" />
<field
name="userSurname1"
obligatory="true"
type="text" />
<field
name="userSurname2"
obligatory="true"
type="text" />
<field
name="userFirstname"
obligatory="true"
type="text" />
<field
name="photoPath"
obligatory="true"
type="text" />
<field
name="userRole"
obligatory="true"
type="integer" />
</table>
<table
name="users_courses"
new-in-version="10"
to-string="%name%" >
<field
name="userCode"
foreign-table="users"
obligatory="true"
type="foreign-key" />
<field
name="crsCod"
foreign-table="courses"
obligatory="true"
type="foreign-key" />
</table>
</database>