-- --------------------------------------------------------
-- Server OS:                    Win64
-- HeidiSQL Version:             12.8.0.6908
-- --------------------------------------------------------



-- Dumping database structure for b.iespejas
CREATE DATABASE IF NOT EXISTS `b.iespejas` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */;
USE `b.iespejas`;

-- Dumping structure for table b.iespejas.elements
CREATE TABLE IF NOT EXISTS `elements` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `users_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `FK_elements_users` (`users_id`),
  CONSTRAINT `FK_elements_users` FOREIGN KEY (`users_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=148 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Dumping data for table b.iespejas.elements: ~7 rows (approximately)
INSERT INTO `elements` (`id`, `name`, `created_at`, `users_id`) VALUES
	(1, '🔥 uguns', '2025-01-14 22:05:25', NULL),
	(2, '💧 ūdens', '2025-01-14 22:05:41', NULL),
	(112, '🌱 dzīvība', '2025-02-04 21:25:36', 9),
	(144, '🔥 uguns', '2025-04-19 15:29:46', 22),
	(145, '💧 ūdens', '2025-04-19 15:29:46', 22),
	(146, '🌎 zeme', '2025-04-19 15:29:47', 22),
	(147, '💨 gaiss', '2025-04-19 15:29:47', 22);

-- Dumping structure for table b.iespejas.saved_elements
CREATE TABLE IF NOT EXISTS `saved_elements` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `saved_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `users_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `FK_saved_elements_users` (`users_id`),
  CONSTRAINT `FK_saved_elements_users` FOREIGN KEY (`users_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Dumping data for table b.iespejas.saved_elements: ~4 rows (approximately)
INSERT INTO `saved_elements` (`id`, `name`, `saved_at`, `users_id`) VALUES
	(35, '🌱 dzīvība', '2025-02-04 21:25:39', 9),
	(36, '💨 gaiss', '2025-04-19 13:55:35', 9),
	(39, '💧 ūdens', '2025-04-19 15:30:51', 22),
	(40, '🔥 uguns', '2025-04-19 15:30:55', 22);

