tsk-50: Deleted test migrations

This commit is contained in:
2025-08-02 16:51:51 -04:00
parent b5714c49c3
commit adf8db4e55
4 changed files with 0 additions and 36 deletions

View File

@@ -1,4 +0,0 @@
-- Add down migration script here
-- DROP TABLE IF EXISTS "user";
-- DROP TABLE IF EXISTS "salt";
-- DROP TABLE IF EXISTS "passphrase";

View File

@@ -1,28 +0,0 @@
-- Add up migration script here
CREATE EXTENSION IF NOT EXISTS pgcrypto;
CREATE TABLE IF NOT EXISTS "user" (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
username TEXT NOT NULL,
password TEXT NOT NULL,
email TEXT NOT NULL,
phone TEXT NOT NULL,
firstname TEXT NOT NULL,
lastname TEXT NOT NULL,
email_verified BOOL NOT NULL,
date_created TIMESTAMPTZ NOT NULL DEFAULT NOW(),
status TEXT NOT NULL,
last_login TIMESTAMPTZ NULL DEFAULT NOW(),
salt_id UUID NOT NULL
);
CREATE TABLE IF NOT EXISTS "salt" (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
salt TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS "passphrase" (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
passphrase TEXT NOT NULL,
date_created TIMESTAMPTZ NOT NULL DEFAULT NOW()
);

View File

@@ -1,2 +0,0 @@
-- Add down migration script here
-- DELETE FROM "passphrase";

View File

@@ -1,2 +0,0 @@
-- Add up migration script here
-- INSERT INTO "passphrase" (passphrase) VALUES('Hg3TWfAT8pEiW6fZGhQKXICkZ246EzrE8Bx26O9iEKmQkbpzlFJTOW8UwSf09oak');