diff --git a/test/markup/sql/combos.expect.txt b/test/markup/sql/combos.expect.txt new file mode 100644 index 0000000000..1b33d31f16 --- /dev/null +++ b/test/markup/sql/combos.expect.txt @@ -0,0 +1,118 @@ +-- Basic Table with a Single Primary Key +CREATE TABLE users ( + id INT PRIMARY KEY, + username VARCHAR(50), + email VARCHAR(100) +); + +-- Table with Composite Primary Key +CREATE TABLE orders ( + order_id INT, + user_id INT, + PRIMARY KEY (order_id, user_id) +); + +-- Table with Primary Key and Auto Increment +CREATE TABLE products ( + product_id INT PRIMARY KEY AUTO_INCREMENT, + name VARCHAR(100), + price DECIMAL(10, 2) +); + +-- Table with Primary Key and Foreign Key +CREATE TABLE order_items ( + item_id INT, + order_id INT, + product_id INT, + PRIMARY KEY (item_id), + FOREIGN KEY (order_id) REFERENCES orders(order_id) +); + +-- Table with Date and Primary Key +CREATE TABLE events ( + event_id INT PRIMARY KEY, + event_name VARCHAR(100), + event_date DATE +); + +-- Basic Table with a Single Primary Key +CREATE +TABLE +users +( +id +INT +PRIMARY +KEY, +username +VARCHAR(50), +email +VARCHAR(100) +); + +-- Table with Composite Primary Key +CREATE +TABLE +orders +( +order_id +INT, +user_id +INT, +PRIMARY +KEY +(order_id, +user_id) +); + +-- Table with Primary Key and Auto Increment +CREATE +TABLE +products +( +product_id +INT +PRIMARY +KEY +AUTO_INCREMENT, +name +VARCHAR(100), +price +DECIMAL(10, 2) +); + +-- Table with Primary Key and Foreign Key +CREATE +TABLE +order_items +( +item_id +INT, +order_id +INT, +product_id +INT, +PRIMARY +KEY +(item_id), +FOREIGN +KEY +(order_id) +REFERENCES +orders(order_id) +); + +-- Table with Date and Primary Key +CREATE +TABLE +events +( +event_id +INT +PRIMARY +KEY, +event_name +VARCHAR(100), +event_date +DATE +); \ No newline at end of file diff --git a/test/markup/sql/combos.txt b/test/markup/sql/combos.txt new file mode 100644 index 0000000000..0df2d62295 --- /dev/null +++ b/test/markup/sql/combos.txt @@ -0,0 +1,118 @@ +-- Basic Table with a Single Primary Key +CREATE TABLE users ( + id INT PRIMARY KEY, + username VARCHAR(50), + email VARCHAR(100) +); + +-- Table with Composite Primary Key +CREATE TABLE orders ( + order_id INT, + user_id INT, + PRIMARY KEY (order_id, user_id) +); + +-- Table with Primary Key and Auto Increment +CREATE TABLE products ( + product_id INT PRIMARY KEY AUTO_INCREMENT, + name VARCHAR(100), + price DECIMAL(10, 2) +); + +-- Table with Primary Key and Foreign Key +CREATE TABLE order_items ( + item_id INT, + order_id INT, + product_id INT, + PRIMARY KEY (item_id), + FOREIGN KEY (order_id) REFERENCES orders(order_id) +); + +-- Table with Date and Primary Key +CREATE TABLE events ( + event_id INT PRIMARY KEY, + event_name VARCHAR(100), + event_date DATE +); + +-- Basic Table with a Single Primary Key +CREATE +TABLE +users +( +id +INT +PRIMARY +KEY, +username +VARCHAR(50), +email +VARCHAR(100) +); + +-- Table with Composite Primary Key +CREATE +TABLE +orders +( +order_id +INT, +user_id +INT, +PRIMARY +KEY +(order_id, +user_id) +); + +-- Table with Primary Key and Auto Increment +CREATE +TABLE +products +( +product_id +INT +PRIMARY +KEY +AUTO_INCREMENT, +name +VARCHAR(100), +price +DECIMAL(10, 2) +); + +-- Table with Primary Key and Foreign Key +CREATE +TABLE +order_items +( +item_id +INT, +order_id +INT, +product_id +INT, +PRIMARY +KEY +(item_id), +FOREIGN +KEY +(order_id) +REFERENCES +orders(order_id) +); + +-- Table with Date and Primary Key +CREATE +TABLE +events +( +event_id +INT +PRIMARY +KEY, +event_name +VARCHAR(100), +event_date +DATE +);