-- --------------------------------------------------------
-- Server OS:                    Win64
-- HeidiSQL Version:             12.6.0.6765
-- --------------------------------------------------------



-- Dumping database structure for kval_ivanova
CREATE DATABASE IF NOT EXISTS `kval_ivanova` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
USE `kval_ivanova`;

-- Dumping structure for table kval_ivanova.chat_logs
CREATE TABLE IF NOT EXISTS `chat_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `user_message` text NOT NULL,
  `bot_response` text NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  CONSTRAINT `chat_logs_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table kval_ivanova.chat_logs: ~2 rows (approximately)
INSERT INTO `chat_logs` (`id`, `user_id`, `user_message`, `bot_response`, `created_at`) VALUES
	(1kval_ivanova, 1, 'How can I feel better today?', 'Try practicing mindfulness to center yourself.', '2024-11-21 06:55:21'),
	(2, 1, 'Give me a motivational quote.', 'Believe in yourself and all that you are.', '2024-11-21 06:55:21');

-- Dumping structure for table kval_ivanova.meditations
CREATE TABLE IF NOT EXISTS `meditations` (
  `meditation_id` int(11) NOT NULL AUTO_INCREMENT,
  `description` text NOT NULL,
  `name` varchar(50) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`meditation_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table kval_ivanova.meditations: ~3 rows (approximately)
INSERT INTO `meditations` (`meditation_id`, `description`, `name`, `created_at`) VALUES
	(13, 'A relaxation technique focusing on slow, deep breathing.', 'Deep Breathing', '2024-11-21 10:01:38'),
	(14, 'A meditation technique that involves focusing on the present moment.', 'Mindfulness', '2024-11-21 10:01:38'),
	(15, 'A type of meditation where a guide helps the practitioner focus.', 'Guided Meditation', '2024-11-21 10:01:38');

-- Dumping structure for table kval_ivanova.quotes
CREATE TABLE IF NOT EXISTS `quotes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `quote` text NOT NULL,
  `author` varchar(255) NOT NULL,
  `type` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table kval_ivanova.quotes: ~3 rows (approximately)
INSERT INTO `quotes` (`id`, `quote`, `author`, `type`) VALUES
	(1, 'The only way to do great work is to love what you do.', 'Steve Jobs', 'Motivational'),
	(2, 'Success is not the key to happiness. Happiness is the key to success.', 'Albert Schweitzer', 'Motivational'),
	(3, 'In the middle of every difficulty lies opportunity.', 'Albert Einstein', 'Inspirational');

