-- Host: db-master-3.internal    Database: customers


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$iyY1t6qCk6SM7x10z5bTRP6CJioqLJigHBpY1A.cIFwubH8.XNQfd','admin','ak_80a9fd97736a8963','2023-12-10 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$AHOhSggbLClvbavVvyj.vQM5c89RA.JRSnEEBlcKMvMbQDpD73GkA','user','ak_0742e447a8f8be73','2023-09-21 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$rehw4vWZL1rGLkpXolgVsqqU6IG/V3KihLh6MY.YaNFBOASGdhvtE','user','ak_d61907c5d10ee28d','2023-10-23 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$JEoLjXvut5iTSmP6gV/IAHutTVOfoETaqMJ/124LGhHaEprY0VgdI','user','ak_0bba5ed110a3f9bf','2023-06-22 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$RiCeuusAapx.XftVUBe6ohkYXzqHFJJ88gBiQzvNHU8eZ6AiE/3oR','user','ak_76897bfb67705536','2023-02-23 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=25389;

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


