github.com/icyphox/x@v0.0.355-0.20220311094250-029bd783e8b8/popx/stub/migrations/transactional/20191100000008000000_selfservice_verification.sqlite3.up.sql (about) 1 CREATE TABLE "identity_verifiable_addresses" ( 2 "id" TEXT PRIMARY KEY, 3 "code" TEXT NOT NULL, 4 "status" TEXT NOT NULL, 5 "via" TEXT NOT NULL, 6 "verified" bool NOT NULL, 7 "value" TEXT NOT NULL, 8 "verified_at" DATETIME, 9 "expires_at" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, 10 "identity_id" char(36) NOT NULL, 11 "created_at" DATETIME NOT NULL, 12 "updated_at" DATETIME NOT NULL, 13 FOREIGN KEY (identity_id) REFERENCES identities (id) ON DELETE cascade 14 )