sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| #!/bin/bash | |
| sudo add-apt-repository -y ppa:git-core/ppa | |
| sudo apt-get update | |
| sudo apt-get install git -y |
| const faker = require('faker') | |
| // const N = 30 | |
| const N = 2000000 | |
| const fs = require('fs') | |
| const record = () => { | |
| // faker.fake( | |
| // '{{name.lastName}},{{name.lastName}},{{address.city}},{{address.county}},{{address.zipCode}},{{hacker.adjective}}\n' | |
| return [ | |
| faker.name.firstName(), | |
| faker.name.lastName(), |
npm install yargs ws
node server.js
node client.js
This document outlines how to model a common organization-based permission system in Hasura. Let's assume that you have some table structure like the following:
| Table Name | Columns | Foreign Keys |
|---|---|---|
| User | id, name, email | |
| Organization User | id, user_id, organization_id | user_id -> user.id, organization_id -> organization.id |
| Organization | id, name |