]> git.mxchange.org Git - friendica.git/blobdiff - static/dbstructure.config.php
updated JA translation THX daingewuvzeevisiddfddd
[friendica.git] / static / dbstructure.config.php
index e460480652019eccbdc4e4ca04723fd290ba6772..835cb3ff37b5d784c3726efc7fd808dea6b1277e 100644 (file)
@@ -55,7 +55,7 @@
 use Friendica\Database\DBA;
 
 if (!defined('DB_UPDATE_VERSION')) {
-       define('DB_UPDATE_VERSION', 1413);
+       define('DB_UPDATE_VERSION', 1418);
 }
 
 return [
@@ -426,6 +426,45 @@ return [
                        "gsid" => ["gsid"]
                ]
        ],
+       "application" => [
+               "comment" => "OAuth application",
+               "fields" => [
+                       "id" => ["type" => "int unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => "generated index"],
+                       "client_id" => ["type" => "varchar(64)", "not null" => "1", "comment" => ""],
+                       "client_secret" => ["type" => "varchar(64)", "not null" => "1", "comment" => ""],
+                       "name" => ["type" => "varchar(255)", "not null" => "1", "comment" => ""],
+                       "redirect_uri" => ["type" => "varchar(255)", "not null" => "1", "comment" => ""],
+                       "website" => ["type" => "varchar(255)", "comment" => ""],
+                       "scopes" => ["type" => "varchar(255)", "comment" => ""],
+                       "read" => ["type" => "boolean", "comment" => "Read scope"],
+                       "write" => ["type" => "boolean", "comment" => "Write scope"],
+                       "follow" => ["type" => "boolean", "comment" => "Follow scope"],
+                       "push" => ["type" => "boolean", "comment" => "Push scope"],
+               ],
+               "indexes" => [
+                       "PRIMARY" => ["id"],
+                       "client_id" => ["UNIQUE", "client_id"]
+               ]
+       ],
+       "application-token" => [
+               "comment" => "OAuth user token",
+               "fields" => [
+                       "application-id" => ["type" => "int unsigned", "not null" => "1", "primary" => "1", "foreign" => ["application" => "id"], "comment" => ""],
+                       "uid" => ["type" => "mediumint unsigned", "not null" => "1", "primary" => "1", "foreign" => ["user" => "uid"], "comment" => "Owner User id"],
+                       "code" => ["type" => "varchar(64)", "not null" => "1", "comment" => ""],
+                       "access_token" => ["type" => "varchar(64)", "not null" => "1", "comment" => ""],
+                       "created_at" => ["type" => "datetime", "not null" => "1", "comment" => "creation time"],
+                       "scopes" => ["type" => "varchar(255)", "comment" => ""],
+                       "read" => ["type" => "boolean", "comment" => "Read scope"],
+                       "write" => ["type" => "boolean", "comment" => "Write scope"],
+                       "follow" => ["type" => "boolean", "comment" => "Follow scope"],
+                       "push" => ["type" => "boolean", "comment" => "Push scope"],
+               ],
+               "indexes" => [
+                       "PRIMARY" => ["application-id", "uid"],
+                       "uid_id" => ["uid", "application-id"],
+               ]
+       ],
        "attach" => [
                "comment" => "file attachments",
                "fields" => [