mirror of
https://github.com/nextcloud/passman.git
synced 2024-11-10 17:27:40 +08:00
473 lines
No EOL
9.5 KiB
XML
473 lines
No EOL
9.5 KiB
XML
<database>
|
|
<name>*dbname*</name>
|
|
<create>true</create>
|
|
<overwrite>false</overwrite>
|
|
<charset>utf8</charset>
|
|
<table>
|
|
<name>*dbprefix*passman_vaults</name>
|
|
<declaration>
|
|
<field>
|
|
<name>id</name>
|
|
<type>integer</type>
|
|
<notnull>true</notnull>
|
|
<autoincrement>true</autoincrement>
|
|
<unsigned>true</unsigned>
|
|
<primary>true</primary>
|
|
<length>8</length>
|
|
</field>
|
|
<field>
|
|
<name>guid</name>
|
|
<type>text</type>
|
|
<default></default>
|
|
<notnull>true</notnull>
|
|
<length>64</length>
|
|
</field>
|
|
|
|
<field>
|
|
<name>user_id</name>
|
|
<type>text</type>
|
|
<default></default>
|
|
<notnull>true</notnull>
|
|
<length>64</length>
|
|
</field>
|
|
<field>
|
|
<name>name</name>
|
|
<type>text</type>
|
|
<length>100</length>
|
|
<notnull>true</notnull>
|
|
</field>
|
|
|
|
<field>
|
|
<name>created</name>
|
|
<type>integer</type>
|
|
<length>8</length>
|
|
<default>0</default>
|
|
<notnull>false</notnull>
|
|
<unsigned>true</unsigned>
|
|
</field>
|
|
<field>
|
|
<name>last_access</name>
|
|
<type>integer</type>
|
|
<default>0</default>
|
|
<length>8</length>
|
|
<notnull>false</notnull>
|
|
<unsigned>true</unsigned>
|
|
</field>
|
|
|
|
<index>
|
|
<name>passman_vault_last_access_index</name>
|
|
<field>
|
|
<name>last_access</name>
|
|
</field>
|
|
</index>
|
|
|
|
<index>
|
|
<name>passman_vault_guid_index</name>
|
|
<field>
|
|
<name>guid</name>
|
|
</field>
|
|
</index>
|
|
|
|
<index>
|
|
<name>npassman_vault_id_index</name>
|
|
<field>
|
|
<name>id</name>
|
|
</field>
|
|
</index>
|
|
|
|
<index>
|
|
<name>passman_vault_uid_id_index</name>
|
|
<field>
|
|
<name>user_id</name>
|
|
</field>
|
|
</index>
|
|
</declaration>
|
|
</table>
|
|
<table>
|
|
<name>*dbprefix*passman_credentials</name>
|
|
<declaration>
|
|
<field>
|
|
<name>id</name>
|
|
<type>integer</type>
|
|
<notnull>true</notnull>
|
|
<autoincrement>true</autoincrement>
|
|
<unsigned>true</unsigned>
|
|
<primary>true</primary>
|
|
<length>8</length>
|
|
</field>
|
|
<field>
|
|
<name>guid</name>
|
|
<type>text</type>
|
|
<notnull>false</notnull>
|
|
<length>64</length>
|
|
</field>
|
|
|
|
<field>
|
|
<name>user_id</name>
|
|
<type>text</type>
|
|
<notnull>false</notnull>
|
|
<length>64</length>
|
|
</field>
|
|
<field>
|
|
<name>vault_id</name>
|
|
<type>integer</type>
|
|
<notnull>true</notnull>
|
|
<length>8</length>
|
|
</field>
|
|
|
|
<field>
|
|
<name>label</name>
|
|
<type>clob</type>
|
|
<notnull>true</notnull>
|
|
</field>
|
|
|
|
<field>
|
|
<name>description</name>
|
|
<type>clob</type>
|
|
<notnull>false</notnull>
|
|
</field>
|
|
<field>
|
|
<name>created</name>
|
|
<type>integer</type>
|
|
<length>8</length>
|
|
<default>0</default>
|
|
<notnull>false</notnull>
|
|
<unsigned>true</unsigned>
|
|
</field>
|
|
<field>
|
|
<name>changed</name>
|
|
<type>integer</type>
|
|
<default>0</default>
|
|
<length>8</length>
|
|
<notnull>false</notnull>
|
|
<unsigned>true</unsigned>
|
|
</field>
|
|
<field>
|
|
<name>tags</name>
|
|
<type>clob</type>
|
|
<notnull>false</notnull>
|
|
</field>
|
|
<field>
|
|
<name>email</name>
|
|
<type>clob</type>
|
|
<notnull>false</notnull>
|
|
</field>
|
|
<field>
|
|
<name>username</name>
|
|
<type>clob</type>
|
|
<notnull>false</notnull>
|
|
</field>
|
|
<field>
|
|
<name>password</name>
|
|
<type>clob</type>
|
|
<notnull>false</notnull>
|
|
</field>
|
|
<field>
|
|
<name>url</name>
|
|
<type>clob</type>
|
|
<notnull>false</notnull>
|
|
</field>
|
|
<field>
|
|
<name>favicon</name>
|
|
<type>clob</type>
|
|
<notnull>false</notnull>
|
|
</field>
|
|
<field>
|
|
<name>renew_interval</name>
|
|
<type>bigint</type>
|
|
<default>0</default>
|
|
<notnull>false</notnull>
|
|
<unsigned>true</unsigned>
|
|
</field>
|
|
<field>
|
|
<name>expire_time</name>
|
|
<type>bigint</type>
|
|
<default>0</default>
|
|
<notnull>false</notnull>
|
|
<unsigned>true</unsigned>
|
|
</field>
|
|
<field>
|
|
<name>delete_time</name>
|
|
<type>bigint</type>
|
|
<default>0</default>
|
|
<length>8</length>
|
|
<notnull>false</notnull>
|
|
<unsigned>true</unsigned>
|
|
</field>
|
|
<field>
|
|
<name>files</name>
|
|
<type>clob</type>
|
|
<notnull>false</notnull>
|
|
</field>
|
|
|
|
<field>
|
|
<name>custom_fields</name>
|
|
<type>clob</type>
|
|
<notnull>false</notnull>
|
|
</field>
|
|
<field>
|
|
<name>otp</name>
|
|
<type>clob</type>
|
|
<notnull>false</notnull>
|
|
</field>
|
|
<field>
|
|
<name>hidden</name>
|
|
<type>boolean</type>
|
|
<default>false</default>
|
|
</field>
|
|
<index>
|
|
<name>passman_credential_id_index</name>
|
|
<field>
|
|
<name>id</name>
|
|
</field>
|
|
</index>
|
|
<index>
|
|
<name>passman_credential_vault_id_index</name>
|
|
<field>
|
|
<name>vault_id</name>
|
|
</field>
|
|
</index>
|
|
<index>
|
|
<name>passman_credential_user_id_index</name>
|
|
<field>
|
|
<name>user_id</name>
|
|
</field>
|
|
</index>
|
|
</declaration>
|
|
</table>
|
|
<table>
|
|
<name>*dbprefix*passman_files</name>
|
|
<declaration>
|
|
<field>
|
|
<name>id</name>
|
|
<type>integer</type>
|
|
<notnull>true</notnull>
|
|
<autoincrement>true</autoincrement>
|
|
<unsigned>true</unsigned>
|
|
<primary>true</primary>
|
|
<length>8</length>
|
|
</field>
|
|
<field>
|
|
<name>guid</name>
|
|
<type>text</type>
|
|
<notnull>false</notnull>
|
|
<length>64</length>
|
|
</field>
|
|
|
|
<field>
|
|
<name>user_id</name>
|
|
<type>text</type>
|
|
<notnull>false</notnull>
|
|
<length>64</length>
|
|
</field>
|
|
<field>
|
|
<name>mimetype</name>
|
|
<type>text</type>
|
|
<length>255</length>
|
|
<notnull>true</notnull>
|
|
</field>
|
|
<field>
|
|
<name>filename</name>
|
|
<type>clob</type>
|
|
<notnull>true</notnull>
|
|
</field>
|
|
<field>
|
|
<name>size</name>
|
|
<type>bigint</type>
|
|
<notnull>true</notnull>
|
|
</field>
|
|
<field>
|
|
<name>created</name>
|
|
<type>bigint</type>
|
|
<notnull>true</notnull>
|
|
</field>
|
|
|
|
<field>
|
|
<name>file_data</name>
|
|
<type>clob</type>
|
|
<notnull>false</notnull>
|
|
</field>
|
|
<index>
|
|
<name>passman_file_id_index</name>
|
|
<field>
|
|
<name>id</name>
|
|
</field>
|
|
</index>
|
|
<index>
|
|
<name>passman_file_user_id_index</name>
|
|
<field>
|
|
<name>user_id</name>
|
|
</field>
|
|
</index>
|
|
</declaration>
|
|
</table>
|
|
<table>
|
|
<name>*dbprefix*passman_revisions</name>
|
|
<declaration>
|
|
<field>
|
|
<name>id</name>
|
|
<type>integer</type>
|
|
<notnull>true</notnull>
|
|
<autoincrement>true</autoincrement>
|
|
<unsigned>true</unsigned>
|
|
<primary>true</primary>
|
|
<length>8</length>
|
|
</field>
|
|
<field>
|
|
<name>guid</name>
|
|
<type>text</type>
|
|
<notnull>true</notnull>
|
|
<length>64</length>
|
|
</field>
|
|
<field>
|
|
<name>credential_id</name>
|
|
<type>integer</type>
|
|
<notnull>true</notnull>
|
|
<length>8</length>
|
|
</field>
|
|
<field>
|
|
<name>user_id</name>
|
|
<type>text</type>
|
|
<notnull>true</notnull>
|
|
<length>64</length>
|
|
</field>
|
|
<field>
|
|
<name>created</name>
|
|
<type>integer</type>
|
|
<length>8</length>
|
|
<default>0</default>
|
|
<notnull>false</notnull>
|
|
<unsigned>true</unsigned>
|
|
</field>
|
|
<field>
|
|
<name>credential_data</name>
|
|
<type>clob</type>
|
|
<notnull>true</notnull>
|
|
</field>
|
|
<index>
|
|
<name>passman_revision_id_index</name>
|
|
<field>
|
|
<name>id</name>
|
|
</field>
|
|
</index>
|
|
<index>
|
|
<name>passman_revision_user_id_index</name>
|
|
<field>
|
|
<name>user_id</name>
|
|
</field>
|
|
</index>
|
|
<index>
|
|
<name>passman_revision_credential_id_index</name>
|
|
<field>
|
|
<name>credential_id</name>
|
|
</field>
|
|
</index>
|
|
</declaration>
|
|
</table>
|
|
<table>
|
|
<name>*dbprefix*passman_sharing_acl</name>
|
|
<declaration>
|
|
<field>
|
|
<name>id</name>
|
|
<type>integer</type>
|
|
<notnull>true</notnull>
|
|
<autoincrement>true</autoincrement>
|
|
<unsigned>true</unsigned>
|
|
<primary>true</primary>
|
|
<length>8</length>
|
|
</field>
|
|
<field>
|
|
<name>item_id</name>
|
|
<type>integer</type>
|
|
<notnull>true</notnull>
|
|
<length>8</length>
|
|
</field>
|
|
<field>
|
|
<name>item_guid</name>
|
|
<type>text</type>
|
|
<notnull>true</notnull>
|
|
<length>64</length>
|
|
</field>
|
|
<field>
|
|
<name>user_id</name>
|
|
<type>text</type>
|
|
<notnull>false</notnull>
|
|
<length>64</length>
|
|
</field>
|
|
<field>
|
|
<name>group_id</name>
|
|
<type>text</type>
|
|
<notnull>false</notnull>
|
|
<length>64</length>
|
|
</field>
|
|
<field>
|
|
<name>created</name>
|
|
<type>integer</type>
|
|
<length>8</length>
|
|
<default>0</default>
|
|
<notnull>false</notnull>
|
|
<unsigned>true</unsigned>
|
|
</field>
|
|
<field>
|
|
<name>expire</name>
|
|
<type>integer</type>
|
|
<length>8</length>
|
|
<default>0</default>
|
|
<notnull>false</notnull>
|
|
<unsigned>true</unsigned>
|
|
</field>
|
|
<field>
|
|
<name>permissions</name>
|
|
<type>integer</type>
|
|
<length>2</length>
|
|
<default>0</default>
|
|
<notnull>true</notnull>
|
|
<unsigned>true</unsigned>
|
|
</field>
|
|
</declaration>
|
|
</table>
|
|
<table>
|
|
<name>*dbprefix*passman_share_request</name>
|
|
<declaration>
|
|
<field>
|
|
<name>id</name>
|
|
<type>integer</type>
|
|
<notnull>true</notnull>
|
|
<autoincrement>true</autoincrement>
|
|
<unsigned>true</unsigned>
|
|
<primary>true</primary>
|
|
<length>8</length>
|
|
</field>
|
|
<field>
|
|
<name>item_id</name>
|
|
<type>integer</type>
|
|
<notnull>true</notnull>
|
|
<length>8</length>
|
|
</field>
|
|
<field>
|
|
<name>item_guid</name>
|
|
<type>text</type>
|
|
<notnull>true</notnull>
|
|
<length>64</length>
|
|
</field>
|
|
<field>
|
|
<name>vault_id</name>
|
|
<type>integer</type>
|
|
<notnull>true</notnull>
|
|
<unsigned>true</unsigned>
|
|
<length>8</length>
|
|
</field>
|
|
<field>
|
|
<name>vault_guid</name>
|
|
<type>text</type>
|
|
<notnull>true</notnull>
|
|
<length>64</length>
|
|
</field>
|
|
<field>
|
|
<name>shared_key</name>
|
|
<type>clob</type>
|
|
<notnull>true</notnull>
|
|
</field>
|
|
</declaration>
|
|
</table>
|
|
</database> |