summaryrefslogtreecommitdiffstats
path: root/crates/auth/migrations/20250723100947_user.sql
diff options
context:
space:
mode:
authorrtkay123 <dev@kanjala.com>2025-07-26 19:24:38 +0200
committerrtkay123 <dev@kanjala.com>2025-07-26 19:24:38 +0200
commite26d87f4fa18999c6bcfbcf32cfa85adab11acdd (patch)
tree603c6dacb6c448984bdcc5fa2b4a9314f1a23960 /crates/auth/migrations/20250723100947_user.sql
parent236876f1d0539ac22a3977fd8599933725ad0f90 (diff)
downloadsellershut-e26d87f4fa18999c6bcfbcf32cfa85adab11acdd.tar.bz2
sellershut-e26d87f4fa18999c6bcfbcf32cfa85adab11acdd.zip
feat(auth): create user call
Diffstat (limited to 'crates/auth/migrations/20250723100947_user.sql')
-rw-r--r--crates/auth/migrations/20250723100947_user.sql20
1 files changed, 0 insertions, 20 deletions
diff --git a/crates/auth/migrations/20250723100947_user.sql b/crates/auth/migrations/20250723100947_user.sql
deleted file mode 100644
index b5566fe..0000000
--- a/crates/auth/migrations/20250723100947_user.sql
+++ /dev/null
@@ -1,20 +0,0 @@
--- Add migration script here
-create table auth_user (
- id uuid primary key,
- email text unique not null,
- updated_at timestamptz not null default now(),
- created_at timestamptz not null default now()
-);
-
-create or replace function set_updated_at()
-returns trigger as $$
-begin
- new.updated_at := now();
- return new;
-end;
-$$ language plpgsql;
-
-create trigger trigger_set_updated_at
-before update on auth_user
-for each row
-execute function set_updated_at();