1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-30 22:08:02 +00:00
_/hasura-rest/migrations/default/1634309496485_init/up.sql

7 lines
206 B
SQL

CREATE ROLE anonymous;
ALTER ROLE anonymous SET statement_timeout = '1s';
CREATE TABLE users (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
name TEXT
);
GRANT INSERT (name) ON users TO anonymous;