new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Better Auth · Concepts · all subjects

how the pieces fit together

7 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

User table relationships in Drizzle ORM

The custom_user table has one-to-many relationships defined: custom_sessions (many sessions per user), custom_accounts (many accounts per user), twoFactors (many 2FA entries per user).

Session table relationship to user

The custom_session table defines a one-to-one relationship to custom_user, with the userId field referencing custom_user.id.

Account table relationship to user

The custom_account table defines a one-to-one relationship to custom_user, with the userId field referencing custom_user.id.

TwoFactor table relationship to user

The twoFactor table defines a one-to-one relationship to custom_user, with the userId field referencing custom_user.id.

User has many sessions relationship

A user can have multiple sessions. The custom_user table has a one-to-many relationship with custom_session through the userId foreign key.

User has many accounts relationship

A user can have multiple accounts. The custom_user table has a one-to-many relationship with custom_account through the userId foreign key.

User has many two-factor entries relationship

A user can have multiple two-factor authentication entries. The custom_user table has a one-to-many relationship with twoFactor through the userId foreign key.

Give your agent this brain