feature #4: create procedure for user

This commit is contained in:
flecomte committed 2019-07-26 02:49:46 +02:00
1 parent 578587f430
commit 0a92316128
8 files changed
+100 -4

No files matched your search

@@ -1,9 +1,5 @@
-- Users
create extension if not exists pgcrypto;
-- select *
-- from "user"
-- where username = lower('nick@example.com')
-- and password = crypt('12346', password);
create table "user"
(
@@ -0,0 +1,2 @@
-- User
drop view if exists user_lite;
@@ -0,0 +1,5 @@
-- User
create or replace view user_lite as
select u.id, u.created_at, u.blocked_at, u.username
from "user" u
where u.blocked_at is null;