Skip to content

Instantly share code, notes, and snippets.

View beemood's full-sized avatar

Robert Brightline beemood

View GitHub Profile
#!/bin/bash
DIR="./generated/schema.prisma"
# Is the schema.prisma file exist?
if [ -f "$DIR" ]; then
echo "prisma client already exists"
else
for FILE in ./*; do [ -f "$FILE" ] && mv "$FILE" "${FILE}.template"; done
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "Model Schema",
"title": "Model Schema",
"description": "Model schema",
"properties": {
"extends": {
"pattern": "^[A-Z]{1}[a-zA-Z]{1,}$"
},
"properties": {