-- Host: db-master-6.internal    Database: main_app


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=41849;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$SxOG.Yqk1Q.sG7kgXlkY3qSswIe6mmCid39My0c73I4NrROVcw.nn','user','ak_4759eff3fc8fd111','2023-08-05 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$mhVkH5N0ZXgMsdQ.lvYs08NcTKi47OuoCGzNdw4h1d78RdrtsPTCV','admin','ak_1ff7ddfdf440b544','2023-11-10 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$Nvl4pDEQPXvGa8P6s9c5cuVS3kd6lZ5NCPvswSfslnmwgimCSaSm5','user','ak_6352a3708cc34311','2023-06-01 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$d6FDtRDhUK0xTK7aiI1E4IWfw3J9kBnFdaWl5/Hl0ovoHDW44XEc.','user','ak_30a4b70172a1f1a1','2023-06-15 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$zLkpmSb76IJUi9u4kk1ah510HdxkHL6X3o6xSqXe5ivdTKwqdbymv','admin','ak_9ec0adb24616aa56','2023-02-26 10:19:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=33610;

--
-- Dumping data for table `sessions`
--


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=50157;

--
-- Dumping data for table `payments`
--


