This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
invert (unsigned x, int p, int n){ | |
p = specified starting position, n = how many to change, x = number being altered; | |
while (p <= n){ | |
change the 0 or 1 at p to the opposite; | |
n++; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- PRAGMAs | |
PRAGMA foreign_keys = ON; | |
-- User | |
CREATE TABLE account( | |
id TEXT PRIMARY KEY, | |
user_id TEXT UNIQUE NOT NULL, | |
password TEXT NOT NULL, | |
password_reset_code TEXT NULL, | |
email TEXT UNIQUE NOT NULL, |