Skip to content
Myr

0002_accounts.sql

This file

Path

apps/platform/migrations/0002_accounts.sql

11 lines · 499 bytes · SQL

Last changed by

Drop the private build plan's citations from the code, and fail verify if one comes backoscabrielbefore adoptiona29cef6

History of this file

Take it

1-- Platform accounts: a handle and a password hash, nothing else.2-- `handle_key` is the handle lowercased, the rule protocol's `sameHandle`3-- compares by, so two handles that differ only in case are one account and4-- a racing second sign-up fails on the key. `password_hash` is5-- `pbkdf2-sha256$<iterations>$<salt>$<hash>`; no password is ever stored.6CREATE TABLE accounts (7  handle_key TEXT PRIMARY KEY,8  handle TEXT NOT NULL,9  password_hash TEXT NOT NULL,10  created_at INTEGER NOT NULL11);