From 58ca33ce42652d2ac25cfe9225038f00fb40ac27 Mon Sep 17 00:00:00 2001 From: SriChatala Date: Thu, 24 Oct 2024 22:34:28 -0400 Subject: [PATCH] Update README.md --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 39c40ca8..c5e52ac3 100644 --- a/README.md +++ b/README.md @@ -45,4 +45,24 @@ docker build -t drawdb . docker run -p 3000:80 drawdb ``` +### Script Examples + +MSSQL Server Script +```sql +CREATE TABLE categories ( + id INT PRIMARY KEY, + name VARCHAR(255) NOT NULL, + description TEXT +); + +CREATE TABLE products ( + id INT PRIMARY KEY, + name VARCHAR(255) NOT NULL, + description TEXT, + price DECIMAL(10,2) NOT NULL, + category_id INT NOT NULL, + FOREIGN KEY (category_id) REFERENCES categories(id) +); +``` + Set up the [server](https://github.com/drawdb-io/drawdb-server) and environment variables according to `.env.sample` for the survey and bug report forms.