v0.7.0
Engine.Seed names the table it inserts into from the type name, and that rule now pluralizes the
way table names are actually written, with an explicit name for the tables it cannot derive.
The derived table name changed for two shapes of type name:
- A name ending in
xis no longer suffixed:JobOutboxseedsjob_outbox, notjob_outboxs. - A consonant before the final
ytakesies:JobCategoryseedsjob_categories, notjob_categorys. A vowel before it still takess, soApiKeykeeps seedingapi_keys.
Every other name still takes a plain s.
- A seeded type with a
TableName() stringmethod inserts into the table it returns, so a table outside the plural rule (tenant_usage_monthly) can be seeded. A generated row gains the method through a defined type over it.