insertProjectDeletedNotification

@Modifying(clearAutomatically = true)
@Query(value = "INSERT INTO " + NOTIFICATIONS_KEY + " (" + IDENTIFIER_KEY + "," + LOGO_URL_KEY + "," + USER_KEY + " )" + " VALUES (" + ":" + IDENTIFIER_KEY + "," + ":" + LOGO_URL_KEY + "," + ":" + USER_KEY + ")", nativeQuery = true)
abstract fun insertProjectDeletedNotification(@Param(value = "id") id: String, @Param(value = "logo_url") projectLogo: String, @Param(value = "user") userId: String)

Method to execute the query to insert a new NovaNotification when a project has been deleted

Parameters

id

: the identifier of the notification

projectLogo

: the logo url of the related project

userId

: the identifier of the user who the notification belongs