]> git.mxchange.org Git - friendica.git/blobdiff - static/dbstructure.config.php
[frio] Align brand name color on nav icon
[friendica.git] / static / dbstructure.config.php
index 110842cbc0bd4c58deb4cfc646634f36adcd4c5e..4eabe2d37b472d32aa994c377b8aa2c003e2c68e 100755 (executable)
@@ -1293,16 +1293,30 @@ return [
                ]
        ],
        "tag" => [
-               "comment" => "item tags and mentions",
+               "comment" => "tags and mentions",
+               "fields" => [
+                       "id" => ["type" => "int unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => ""],
+                       "name" => ["type" => "varchar(96)", "not null" => "1", "default" => "", "comment" => ""],
+                       "url" => ["type" => "varbinary(255)", "not null" => "1", "default" => "", "comment" => ""]
+               ],
+               "indexes" => [
+                       "PRIMARY" => ["id"],
+                       "type_name_url" => ["UNIQUE", "name", "url"],
+                       "url" => ["url"]
+               ]
+       ],
+       "post-tag" => [
+               "comment" => "post relation to tags",
                "fields" => [
                        "uri-id" => ["type" => "int unsigned", "not null" => "1", "primary" => "1", "relation" => ["item-uri" => "id"], "comment" => "Id of the item-uri table entry that contains the item uri"],
                        "type" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "0", "primary" => "1", "comment" => ""],
-                       "name" => ["type" => "varchar(64)", "not null" => "1", "default" => "", "primary" => "1", "comment" => ""],
-                       "url" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""]
+                       "tid" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "primary" => "1", "relation" => ["tag" => "id"], "comment" => ""],
+                       "cid" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "primary" => "1", "relation" => ["contact" => "id"], "comment" => "Contact id of the mentioned public contact"],
                ],
                "indexes" => [
-                       "PRIMARY" => ["uri-id", "type", "name"],
-                       "type_name" => ["type", "name"]
+                       "PRIMARY" => ["uri-id", "type", "tid", "cid"],
+                       "uri-id" => ["tid"],
+                       "cid" => ["tid"]
                ]
        ],
        "thread" => [