Open mrjogo opened 2 months ago
encountered the exact same issue, any update on this?
Also experiencing this. Trying to use Snaplet and I can't get it to work.
@mrjogo: You can try defining "lifetime_plan?" as a literal string, e.g.:
billing_accounts: {
data: {
'lifetime_plan?': "..."
}
I didn't write that file, it was autogenerated.
You can add the following property to seed.config.ts
:
...
select: ["!*", "public.*"],
...
Then, when you generate the seed, it will ignore all non-public tables.
Some of Supabase's built-in tables (specifically
_analytics.users
) have column names with question marks (ie,lifetime_plan?
). Seed's codegen doesn't handle it properly, and generates the following invalid javascript inuserModels.js
:which results in an error when trying to run:
node_modules/@snaplet/seed/dist/assets/userModels.js:52:17: ERROR: Expected "}" but found "?"