database.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <database xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/database.xsd">
  3. <name>*dbname*</name>
  4. <create>true</create>
  5. <overwrite>false</overwrite>
  6. <charset>utf8</charset>
  7. <table>
  8. <name>*dbprefix*oauth2_clients</name>
  9. <declaration>
  10. <field>
  11. <name>id</name>
  12. <type>integer</type>
  13. <notnull>true</notnull>
  14. <autoincrement>true</autoincrement>
  15. <unsigned>true</unsigned>
  16. <primary>true</primary>
  17. </field>
  18. <field>
  19. <name>name</name>
  20. <type>text</type>
  21. <notnull>true</notnull>
  22. <length>64</length>
  23. </field>
  24. <field>
  25. <name>redirect_uri</name>
  26. <type>text</type>
  27. <notnull>true</notnull>
  28. <length>2000</length>
  29. </field>
  30. <field>
  31. <name>client_identifier</name>
  32. <type>text</type>
  33. <notnull>true</notnull>
  34. <length>64</length>
  35. </field>
  36. <field>
  37. <name>secret</name>
  38. <type>text</type>
  39. <notnull>true</notnull>
  40. <length>64</length>
  41. </field>
  42. <index>
  43. <name>oauth2_client_id_idx</name>
  44. <unique>false</unique>
  45. <field>
  46. <name>client_identifier</name>
  47. </field>
  48. </index>
  49. </declaration>
  50. </table>
  51. <table>
  52. <name>*dbprefix*oauth2_access_tokens</name>
  53. <declaration>
  54. <field>
  55. <name>id</name>
  56. <type>integer</type>
  57. <notnull>true</notnull>
  58. <autoincrement>true</autoincrement>
  59. <unsigned>true</unsigned>
  60. <primary>true</primary>
  61. </field>
  62. <field>
  63. <name>token_id</name>
  64. <type>integer</type>
  65. <notnull>true</notnull>
  66. </field>
  67. <field>
  68. <name>client_id</name>
  69. <type>integer</type>
  70. <notnull>true</notnull>
  71. </field>
  72. <field>
  73. <name>hashed_code</name>
  74. <type>text</type>
  75. <notnull>true</notnull>
  76. <length>128</length>
  77. </field>
  78. <field>
  79. <name>encrypted_token</name>
  80. <type>text</type>
  81. <notnull>true</notnull>
  82. <length>786</length>
  83. </field>
  84. <index>
  85. <name>oauth2_access_hash_idx</name>
  86. <unique>true</unique>
  87. <field>
  88. <name>hashed_code</name>
  89. </field>
  90. </index>
  91. <index>
  92. <name>oauth2_access_client_id_idx</name>
  93. <unique>false</unique>
  94. <field>
  95. <name>client_id</name>
  96. </field>
  97. </index>
  98. </declaration>
  99. </table>
  100. </database>