mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-26 00:43:09 +03:00
5bc0355bdd
GitOrigin-RevId: abd7303aaf8e7a8739fd10574249aec450082ef8
28 lines
494 B
YAML
28 lines
494 B
YAML
type: bulk
|
|
args:
|
|
|
|
- type: run_sql
|
|
args:
|
|
sql: |
|
|
CREATE TABLE "user"(
|
|
id SERIAL PRIMARY KEY,
|
|
name TEXT NOT NULL UNIQUE
|
|
);
|
|
INSERT INTO "user" (name)
|
|
VALUES ('admin'), ('user'), ('anonymous')
|
|
;
|
|
|
|
- type: track_table
|
|
args:
|
|
name: user
|
|
schema: public
|
|
# define permission for anonymous role
|
|
- type: create_select_permission
|
|
args:
|
|
table: user
|
|
role: anonymous
|
|
permission:
|
|
columns: '*'
|
|
filter:
|
|
name: anonymous
|