feat: github & google login

This commit is contained in:
Elias Renman
2025-03-20 10:09:57 +01:00
parent 02a35cc555
commit 6361532c1e
23 changed files with 1664 additions and 44 deletions

View File

@@ -1,4 +1,4 @@
-- This file should undo anything in `up.sql`
DROP TRIGGER urls_update_at_trigger;
DROP TRIGGER IF EXISTS urls_update_at_trigger;
DROP TABLE urls;

View File

@@ -3,7 +3,7 @@ CREATE TABLE urls (
url TEXT PRIMARY KEY NOT NULL,
destination_url TEXT NOT NULL,
ttl DATETIME,
owned_by TEXT,
owned_by TEXT NOT NULL CHECK (owned_by = owned_by),
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP
);

View File

@@ -0,0 +1,2 @@
-- This file should undo anything in `up.sql`
DROP TABLE magic_links;

View File

@@ -0,0 +1,7 @@
-- Your SQL goes here
CREATE TABLE magiclinks (
url TEXT PRIMARY KEY NOT NULL,
ttl DATETIME NOT NULL,
owned_by TEXT NOT NULL CHECK (owned_by = owned_by),
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
);