318 columns, 147 of them nullable, and not one column in the schema that is both nullable and defaulted

typescript dev.to

Nakodo runs outreach campaigns: a brand says what it is after, the app finds creators or local businesses that fit, writes to them, and hands over the ones that say yes. What the app promises to keep and to forget is written out on the privacy page, and most of that promise is enforced by column definitions rather than by code. So I counted the columns. One file, src/db/schema.ts, 1,266 lines, 25 tables, 318 columns. columns 318 not null or primary key 171 nullable 147 with a default 1

Read Full Tutorial open_in_new
arrow_back Back to Tutorials