|
|
@ -9,6 +9,8 @@
|
|
|
|
<column name="username" type="varchar" size="64" />
|
|
|
|
<column name="username" type="varchar" size="64" />
|
|
|
|
<column name="password" type="varchar" size="64" />
|
|
|
|
<column name="password" type="varchar" size="64" />
|
|
|
|
<column name="superuser" type="boolean" default="false" />
|
|
|
|
<column name="superuser" type="boolean" default="false" />
|
|
|
|
|
|
|
|
<column name="max_invites" type="integer" default="0" />
|
|
|
|
|
|
|
|
<column name="used_invites" type="integer" default="0" />
|
|
|
|
|
|
|
|
|
|
|
|
<unique>
|
|
|
|
<unique>
|
|
|
|
<unique-column name="username" />
|
|
|
|
<unique-column name="username" />
|
|
|
@ -46,6 +48,11 @@
|
|
|
|
<table name="Invite">
|
|
|
|
<table name="Invite">
|
|
|
|
<column name="id" type="integer" primaryKey="true" autoIncrement="true" />
|
|
|
|
<column name="id" type="integer" primaryKey="true" autoIncrement="true" />
|
|
|
|
<column name="invite" type="varchar" size="64" />
|
|
|
|
<column name="invite" type="varchar" size="64" />
|
|
|
|
|
|
|
|
<column name="owner" type="integer" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<foreign-key foreignTable="User">
|
|
|
|
|
|
|
|
<reference local="owner" foreign="id" />
|
|
|
|
|
|
|
|
</foreign-key>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<table name="Server">
|
|
|
|
<table name="Server">
|
|
|
|