Re: Chat history progress - GSoC 2017

Paulo Lieuthier <[email protected]> Tue, 20 Jun 2017 08:38:01 -0300
Newsgroups gmane.comp.kde.devel.kopete
Message-ID <[email protected]>
On 20-06-2017 05:20, Pali Rohár wrote:
> On Tuesday 20 June 2017 01:24:10 Paulo Lieuthier wrote:
>> The new iteration:
>>
>> Conversations:
>> * id
>> * subconversation_id
>> * account
>> * type (1:1, group, channel)
>> * entity_identifier (id of contact, group or channel)
>> * entity_display_name
>>
>> Messages:
>> * id
>> * conversation_id
>> * subconversation_id
>> * timestamp
>> * sender_id (contact id, if available)
>> * sender_display_name (sender name, if name not available through id)
>> * type (text, event, file, voice clip)
>> * content (html)
>> * importance
>> * state
> 
> This looks like a synthetic split. Via "Conversations" there are stored
> two relations (id + subconversation_id), so it in final it N:M relation
> via two tables?

I'm thinking of using two tables, or maybe setting both id and
subconversation_id as the primary key.
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE1zYPI7MzCz4LkgKDxjsds50Osg8FAllJCRoACgkQxjsds50O
sg9rwQ/9HVtYGQN2tNyDdO9m53XkAj0gzaRiB/lEVQlvO1hIn7rWwW9wlELACkD2
UO3daX+o21ESbeB0AKn7n8ZvViyGDjajX+++K6rCCHqe3+g2xJlsX692dZzjrNbz
USpiEMQkvTZNwFGxO/8n6aJBNFB7XJSUfr4Yi6PMqrZUhg02ld5lw3KdB3GEIq2S
NHzRc085jcgdhzmkSZRcAMY3pU5R+Sy6SDp6+CSsu6z0gbvHD6KwUKRVLn8ymaKI
FDD8py16Zzo8uj8/HMT/kgm6Dn6BTetNDlYE6FLLm6KiyZYU+ex93+2OTxH2VGlb
4wPixg9jMCPUNIEwH4iDH32tHhZHFvG3soAIxwVFIJg+zmRBYi2b0XDAOejb4xOG
M9ucjJrdYzvziveYt14W0HrA1V5/+iRaDlpkg6l9mFaOLpte7spHC8N/Vnuctqhh
GeipTIhOIaEq96UzafFu8mD2zp+ChWTva4d2FrchaP5IC5UvyeImG1Ke5GWjfKeR
Leaiz24Uo8yoKFeg0Qu5F0PPG9L3oCEi3iUFZuHFpXamMEQgUrlLq+9vSaBiqrKb
g5DTyE8FSNO+N44rx1JNUHhvqTlz0cvKezWCnkweTyYMqz8Rrj2YsO21aZ+S7/eg
7WV30npdTN/szJUSp7yhptKY08hRbJEOlwKTIKxnFeRqMYxQ1+8=
=vjtI
-----END PGP SIGNATURE-----