-- --------------------------------------------------------
-- 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=103 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Dumping data for table b.iespejas.elements: ~12 rows (approximately)
INSERT INTO `elements` (`id`, `name`, `created_at`, `users_id`) VALUES
	(1, '🔥 uguns', '2024-12-27 01:15:02', NULL),
	(2, '💧 ūdens', '2024-12-27 01:15:02', NULL),
	(3, '🌎 zeme', '2024-12-27 01:15:02', NULL),
	(4, '💨 gaiss', '2024-12-27 01:15:02', NULL),
	(95, '🌫️ Tvaiks', '2025-01-12 20:28:58', NULL),
	(96, '☁️ Mākoņi', '2025-01-12 20:42:21', NULL),
	(97, '🌪️ tornādo', '2025-01-12 20:44:27', 1),
	(98, '🌈 Zilumbra', '2025-01-12 20:46:50', 1),
	(99, '🌊 Zilumbras okeāns', '2025-01-12 20:47:08', 1),
	(100, '🌪️ tornādo', '2025-01-12 20:52:04', 6),
	(101, '🌀 vētra', '2025-01-12 20:52:25', 6),
	(102, '🌩️ lielā vētra', '2025-01-12 20:52:45', 6);

-- 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=32 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Dumping data for table b.iespejas.saved_elements: ~3 rows (approximately)
INSERT INTO `saved_elements` (`id`, `name`, `saved_at`, `users_id`) VALUES
	(28, '🔥 uguns', '2025-01-09 22:21:34', NULL),
	(29, '🌩️ lielā vētra', '2025-01-12 20:54:54', 6),
	(30, '🌀 vētra', '2025-01-12 20:59:30', 6),
	(31, '💧 ūdens', '2025-01-12 20:59:33', 6);

