-- Host: db-master-0.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$6GJb1QFMltV0.1iB2rdWFGVPuodun3L6YKca0akoitljfIY.xKgGe','user','ak_434a60c1b51ca029','2023-05-09 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$exfO8spLqtMuG6CztZ5EkPnTF.cIWSZOH7o1vaMB.cE8/sqeD2QN9','user','ak_143fa15c9b38416a','2023-01-25 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$BUTrNWPGfkHOUzlyrU6nGboE/1ERNKH8tp0FZo1IaKDU/P3WLawUw','user','ak_65312187defeef9b','2023-07-04 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$d1T7zagFNdiocrFL47khuVtjjkSs36XbOSlRVYs8oIPEH7uXQpuP7','user','ak_49a52b46c7471a63','2023-06-18 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$/Kr9hGQX9dsX56r6bIxgFlmIK2SML5ElkkmyM7Kp7P6a6gmEo0cA8','user','ak_36333518baa69e64','2023-05-24 10:23:00',NULL);

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

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


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

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


