feature #4: create procedure for user

This commit is contained in:
2019-07-26 02:47:43 +02:00
parent 578587f430
commit 0a92316128
8 changed files with 100 additions and 4 deletions

View File

@@ -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"
(

View File

@@ -0,0 +1,2 @@
-- User
drop view if exists user_lite;

View File

@@ -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;