You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
3.4 KiB
XML
89 lines
3.4 KiB
XML
<database name="default" defaultIdMethod="native"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://xsd.propelorm.org/1.6/database.xsd"
|
|
namespace="Eater\Glim\Model"
|
|
>
|
|
<table name="User">
|
|
<column name="id" type="integer" primaryKey="true" autoIncrement="true" />
|
|
<column name="max_keys" type="integer" default="5" />
|
|
<column name="username" type="varchar" size="64" />
|
|
<column name="email" size="256" />
|
|
<column name="password" type="varchar" size="64" />
|
|
<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-column name="username" />
|
|
</unique>
|
|
</table>
|
|
|
|
<table name="Certificate">
|
|
<column name="id" type="integer" primaryKey="true" autoIncrement="true" />
|
|
<column name="user_id" type="integer" />
|
|
<column name="name" type="varchar" size="64" />
|
|
<column name="certificate" type="longvarchar" />
|
|
<column name="private_key" type="longvarchar" />
|
|
<column name="expires_on" type="timestamp" />
|
|
<column name="revoked" type="boolean" default="false" />
|
|
<column name="serial" type="varchar" size="64" />
|
|
|
|
<index>
|
|
<index-column name="user_id" />
|
|
</index>
|
|
|
|
<index>
|
|
<index-column name="serial" />
|
|
</index>
|
|
|
|
<unique>
|
|
<unique-column name="name" />
|
|
<unique-column name="user_id" />
|
|
</unique>
|
|
|
|
<foreign-key foreignTable="User">
|
|
<reference local="user_id" foreign="id" />
|
|
</foreign-key>
|
|
</table>
|
|
|
|
<table name="Invite">
|
|
<column name="id" type="integer" primaryKey="true" autoIncrement="true" />
|
|
<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 name="Server">
|
|
<column name="id" type="integer" primaryKey="true" autoIncrement="true" />
|
|
<column name="fqdn" type="varchar" size="64" />
|
|
<column name="fingerprint" type="varchar" size="64"/>
|
|
<column name="public_key" type="longvarchar" />
|
|
<column name="certificate" type="longvarchar" />
|
|
<column name="location" type="varchar" size="64" default="Unknown" />
|
|
<column name="speed" type="integer" default="-1" />
|
|
<column name="external_ip" type="varchar" size="128" />
|
|
<column name="internal_ip" type="varchar" size="128" default="10.24.0.0" />
|
|
<column name="netmask" type="integer" size="4" default="16" />
|
|
<column name="first_dns" type="varchar" size="128" />
|
|
<column name="second_dns" type="varchar" size="128" />
|
|
<column name="port" type="integer" default="1194" />
|
|
<column name="protocol" type="enum" valueSet="udp,tcp" default="udp" />
|
|
<column name="status" type="enum" default="registered" valueSet="registered,signed,revoked" />
|
|
|
|
<index>
|
|
<index-column name="fqdn" />
|
|
</index>
|
|
|
|
<index>
|
|
<index-column name="status" />
|
|
</index>
|
|
|
|
<unique>
|
|
<unique-column name="fingerprint" />
|
|
</unique>
|
|
</table>
|
|
</database>
|