Hacker News new | ask | show | jobs
by anemic 3826 days ago
as you seem to have some inside information can you share some details about the database schema: is naughty field not null or nullable? what about indexing a table on a boolean column?
1 comments

Niceness is an ENUM

  'not known',
  'nice',
  'naughty',
  'nasty'
Additionally, the nice list is a bitemporal table, and CheckStatus is also an ENUM ( 'nunce', 'once', 'twice', 'more' ). Foreign keys go to the Person and Elf tables.