database.xml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <database>
  3. <name>*dbname*</name>
  4. <create>true</create>
  5. <overwrite>false</overwrite>
  6. <charset>utf8</charset>
  7. <table>
  8. <name>*dbprefix*share_external</name>
  9. <declaration>
  10. <field>
  11. <name>id</name>
  12. <type>integer</type>
  13. <default>0</default>
  14. <notnull>true</notnull>
  15. <autoincrement>1</autoincrement>
  16. <length>4</length>
  17. </field>
  18. <field>
  19. <name>parent</name>
  20. <type>integer</type>
  21. <default>-1</default>
  22. <length>4</length>
  23. </field>
  24. <field>
  25. <name>share_type</name>
  26. <type>integer</type>
  27. <length>4</length>
  28. </field>
  29. <field>
  30. <name>remote</name>
  31. <type>text</type>
  32. <notnull>true</notnull>
  33. <length>512</length>
  34. <comments>Url of the remove owncloud instance</comments>
  35. </field>
  36. <field>
  37. <name>remote_id</name>
  38. <type>integer</type>
  39. <default>-1</default>
  40. <notnull>true</notnull>
  41. <length>4</length>
  42. </field>
  43. <field>
  44. <name>share_token</name>
  45. <type>text</type>
  46. <notnull>true</notnull>
  47. <length>64</length>
  48. <comments>Public share token</comments>
  49. </field>
  50. <field>
  51. <name>password</name>
  52. <type>text</type>
  53. <notnull>false</notnull>
  54. <length>64</length>
  55. <comments>Optional password for the public share</comments>
  56. </field>
  57. <field>
  58. <name>name</name>
  59. <type>text</type>
  60. <notnull>true</notnull>
  61. <length>64</length>
  62. <comments>Original name on the remote server</comments>
  63. </field>
  64. <field>
  65. <name>owner</name>
  66. <type>text</type>
  67. <notnull>true</notnull>
  68. <length>64</length>
  69. <comments>User that owns the public share on the remote server</comments>
  70. </field>
  71. <field>
  72. <name>user</name>
  73. <type>text</type>
  74. <notnull>true</notnull>
  75. <length>64</length>
  76. <comments>Local user which added the external share</comments>
  77. </field>
  78. <field>
  79. <name>mountpoint</name>
  80. <type>text</type>
  81. <notnull>true</notnull>
  82. <length>4000</length>
  83. <comments>Full path where the share is mounted</comments>
  84. </field>
  85. <field>
  86. <name>mountpoint_hash</name>
  87. <type>text</type>
  88. <notnull>true</notnull>
  89. <length>32</length>
  90. <comments>md5 hash of the mountpoint</comments>
  91. </field>
  92. <field>
  93. <name>accepted</name>
  94. <type>integer</type>
  95. <default>0</default>
  96. <notnull>true</notnull>
  97. <length>4</length>
  98. </field>
  99. <index>
  100. <name>sh_external_user</name>
  101. <field>
  102. <name>user</name>
  103. <sorting>ascending</sorting>
  104. </field>
  105. </index>
  106. <index>
  107. <name>sh_external_mp</name>
  108. <unique>true</unique>
  109. <field>
  110. <name>user</name>
  111. <sorting>ascending</sorting>
  112. </field>
  113. <field>
  114. <name>mountpoint_hash</name>
  115. <sorting>ascending</sorting>
  116. </field>
  117. </index>
  118. </declaration>
  119. </table>
  120. </database>