Database

⚠ Important: Be careful when modifying any file that appears in these sections, read the documentation carefully as there may be errors and it could lead to unwanted errors appearing.

File types

In the folder databaseFiles we have different types of files such as:

  • BucketStorage = policies are created and the environment where the chats' media files will be stored is automatically configured in supabase.

  • TableChats = automatic creation of the table and policies for storing chat messages.

  • Messages = file that is in charge of storing all the messages of the chats in the db.

  • DatabaseManager = Global configuration of the files related to the database “Parent File”.

  • Database = File that works “hand in hand” with processMessage and database if something is modified here it affects the 2 mentioned files.

  • PersonalTable = This file is in charge of creating the base for the Database file to work correctly, it creates the clients table in supabase.

Última actualización