From fd81b532d0014ec2b7813a46ca785064fc40cba9 Mon Sep 17 00:00:00 2001 From: dqnid Date: Wed, 24 Jul 2024 00:23:27 +0200 Subject: [PATCH] feat(mysql): database table created for example --- mysql/dump/dump.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mysql/dump/dump.sql b/mysql/dump/dump.sql index a538793..b9e486f 100755 --- a/mysql/dump/dump.sql +++ b/mysql/dump/dump.sql @@ -7,6 +7,18 @@ CREATE TABLE user ( created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); +CREATE TABLE example ( + id INT AUTO_INCREMENT PRIMARY KEY, + name VARCHAR(50) NOT NULL, + description VARCHAR(255) NOT NULL, + image VARCHAR(255) NOT NULL, + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP +); + INSERT INTO user (username, password, roles) VALUES ('dqnid', '$2b$10$DDGh9u4yiTY9FJx2faFPlucBbTB6Y3i8YkH7AEztcpeaKv08AjdrW', 'admin'), ('albi', '$2b$10$DDGh9u4yiTY9FJx2faFPlucBbTB6Y3i8YkH7AEztcpeaKv08AjdrW', 'admin'); + +INSERT INTO example (name, description, image) VALUES +('dqnid', 'This is a short text stored in a mysql database', 'https://picsum.photos/200/300'), +('albi._.ta', 'This is another short text stored in a mysql database and retrieved by a NestJS backend', 'https://picsum.photos/200/300');