1
0
Fork 0

Store the interaction date as well.

This commit is contained in:
Michael 2020-03-10 22:04:03 +00:00
commit c261457b03
3 changed files with 15 additions and 6 deletions

View file

@ -322,6 +322,7 @@ return [
"fields" => [
"cid" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "relation" => ["contact" => "id"], "comment" => "contact the related contact had interacted with"],
"relation-cid" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "relation" => ["contact" => "id"], "comment" => "related contact who had interacted with the contact"],
"last-interaction" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "Date of the last interaction"],
],
"indexes" => [
"PRIMARY" => ["cid", "relation-cid"],