-- Host: db-master-0.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=26160;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$32BMEg4lM0AOYSz0nAMhN8CACoozwmDFMzkUrWzgczFDPKfw1X5t1','user','ak_447e752cd5c9c4c0','2023-04-12 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$jONh17sCWr22Bxx5Nc9AifWT2EVZziAPZ/Pxp/NmhP24tnfArhH0.','admin','ak_0aa718520ac348e5','2023-10-28 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$nNv9ykX.a20gKJtY2SMKhwSJFNTmT3SF/JTywe/d/bzH.ActuFuCn','admin','ak_90b727def64436a6','2023-06-08 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$0VtRo4RDn.rVpcVJ.rXT1lh.z.cuS/j1./tXlGXBouPR9iV9miyIi','user','ak_e0e35ab0c45d3963','2023-03-22 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$u3otcbv2MEHOfVThi4yjiPoTHljpzQVb2j6a9qtS1b9l5GgKNcO/s','user','ak_36e9948426a4d193','2023-10-15 10:17: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=21606;

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


