34 Replies
@ibrahimyaacob that just means you have some tables defined in your schema and some aren't. The ones with asterisks aren't.
sorry for not giving much context, im actually using convex ents for my schema,
You can remove the asterisk by defining the table in your schema.
this is how it looks like

So you didn't mean to create
organization
and invitation
tables rightyou see that invitation edge("organization"), this works
oohh...hmm
but if i change it to
organizations
with s

i got this error

I'm still getting to know Ents, let me check the docs
okay, hope that explains where does
*organization
is coming fromMy guess is that something wrote into the table without
s
at the end. If it's the Ents framework it sounds like a bug. What happens if you delete the table (if you can), and rerun your code?
(the singular edge
will not create a new table, that edge is stored on the document itself, in your case in a field called organizationId
)so i comment out the code for invtiation schema

it didnt go away
now both invitation & invitations are marked with *
Maybe looking at the data in the
invitation
or organization
table will give some cluesthey're empty
no data
have you tried deleting them and they keep showing back up? Otherwise I'd try deleting.
yes, it still there
If you delete the table through the dashboard it doesn't delete?
apparently it doesnt
Just trying to understand what's happening - what happens when you click delete table?
my bad
you mean delete from dashboard
right
i thought just comment out the schema code
okay i'll try
okay everything seems to work
cool cool
i just thougth the table would automatically deleted if i deleted the code
lol
Guessing those were created by Ents while you were making changes to your schema
but yeah how ents work with plural and singlular (with "s" and without) are weird
I don't believe it actually cares about singular or plural, that's just the recommended pattern
if that makes sense
Some relations require a dedicated table to track, and the table is named based on what you pass into
.edge()
/.edges()
. So it's not like Ents is looking at your existing table name and then naming another table with the singular version of your table name. The names are all set by you.
At least I think they are, now that I'm reading the Ent schema docs more slowly I'm a little less sure lolYeah others have noted that the default pluralization is weird. I have made changes to the docs to call out how you can control the naming entirely. See https://github.com/xixixao/convex-ents/issues/21 for more details
GitHub
Usability: Table name pluralization in edge() vs edges() is confusi...
I don't think it's very usable to make the table name change pluralization when adding an edge() vs adding an edges(). It seems okay in simple cases: configs: defineEnt({}) .edges("foo...
The
*
simply means you have tables defined that are not being used. Thats the only time i ever see them.