I read an article on Habré about how anti-spam was created for mail. It became very interesting to me how, with such logging of actions, it is correct to store this same log in the database. What is the approximate structure of a database with this approach? How is information in the database "Possible patterns (screenshot)" . Obviously not a string. This question, which affects the correct construction of the database does not give me rest.
![Possible patterns [3]](https://i.stack.imgur.com/XWGp6.png)