CREATE TABLE IF NOT EXISTS "family" ( "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT ); ALTER TABLE "user" ADD COLUMN "family_id" INTEGER REFERENCES family(id);