Set table name and different relation name (no listing_set) for ManyToManyField

I have Listing and CustomUser models that are in many-to-many relation ship. I don’t have explicit model for the join table.
users/models.py:

class CustomUser(AbstractUser):

listings/models.py:

from django.db import models

from users.models import CustomUser

class Listings(models.Model):
    bookmarks = models.ManyToManyField(CustomUser, related_name="bookmarked_listings", blank=True)

I want the table name to be listing_bookmarks and the name of the relation from CustomUser side to be bookmarked_listings. How do I define a table name and different reverse relation name for ManyToManyField?

I don’t think that setting related_name for table name makes sense.

If you want to specifically define the table name of the join table (the “through” model), then you need to explicitly define the through model and use the “Meta” class to define the table name to be used.

Is db_table a valid option for table name?

Yes, as documented at Model Meta options | Django documentation | Django