Store mentioned contacts in another way
This commit is contained in:
parent
539a5c5da1
commit
5d34a90d67
2 changed files with 43 additions and 24 deletions
|
@ -1296,24 +1296,26 @@ return [
|
|||
"comment" => "tags and mentions",
|
||||
"fields" => [
|
||||
"id" => ["type" => "int unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => ""],
|
||||
"type" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "0", "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", "type", "name", "url"]
|
||||
"PRIMARY" => ["id"],
|
||||
"type_name_url" => ["UNIQUE", "name", "url"]
|
||||
]
|
||||
],
|
||||
"post-tag" => [
|
||||
"comment" => "post relation to tags",
|
||||
"fields" => [
|
||||
"tid" => ["type" => "int unsigned", "not null" => "1", "relation" => ["tag" => "id"], "primary" => "1", "comment" => ""],
|
||||
"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" => ""],
|
||||
"tid" => ["type" => "int unsigned", "not null" => "1", "relation" => ["tag" => "id"], "primary" => "1", "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" => ["tid", "uri-id"],
|
||||
"uri-id" => ["uri-id"]
|
||||
"PRIMARY" => ["uri-id", "type", "tid", "cid"],
|
||||
"uri-id" => ["tid"],
|
||||
"cid" => ["tid"]
|
||||
]
|
||||
],
|
||||
"thread" => [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue