-- Host: db-master-2.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=41921;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$v9yhSnvZVKmO0r4NpDOkESWBX9u9TvXQgZg2pYPZV93U7AkpVItGt','user','ak_b7276cd987ec108f','2023-05-06 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$A8sh9WKwTpM1AkFSz6iRU/9IuT.RgV4PQ79cYG5ZZORxdqonArnnm','user','ak_2bac511db6f4f1ed','2023-09-26 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$pPd3VYdKv65YRRWZ7ZsB/LQO8qRz8cnoDHTpUzGHZbbCeYcdWqTYT','admin','ak_58bc3fd5833e5de3','2023-01-24 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$WZ5XH00CrxYK4haqosD43aLSvCQ4JS7lRUly0kYZhUcMb2xBfq8pF','user','ak_58224b2102aa571b','2023-02-28 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$UGQMB0ITYIbuYuoshTqdR7EHiWkfW1.m4bXAB/hXC8DNfSHKov.vz','user','ak_9754acbe2cc4d5fb','2023-06-27 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$fBm1X6A6wNfTfnQj64Zh2DgRqXhh44ueb7mUUt431erxRU18H/qzy','admin','ak_a1feb82cf73cbe38','2023-09-12 10:03: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=10399;

--
-- 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=38599;

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


