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


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

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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$C7oOsqFzF79UxOZbED5X6WC.hwI7S5kqPm8IMxZ7K58DeUEiEGmxr','admin','ak_10fd7b3b4b8b7b72','2023-12-28 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$RN7wUNp7/HpbT9TChXbGJsNRhoHSQss436Vg6dqUoVt/oVGqNja7O','user','ak_7ce9a16509b0b24b','2023-03-16 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$P4TzTvYufGrXsCgXwcxvMldaVo3vdw7IaUACGLAbRBnD2I9iIKVCy','user','ak_2175196f561ca309','2023-09-13 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$6udc7cNEfW3L.D/fOLhA3V4RnAncjlhFMSK3UUeT9JbDRYxwTX/Z9','user','ak_3feb9c187ff12a48','2023-09-08 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$yO0SiTQdonxNES1y6HhWkIoTj86sSgoV7.zY8.aHKWr4Pmv19DuYP','user','ak_82d8540b74fd33b8','2023-07-22 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$9WUToCdPa448XFKgtjxh0xBQ.uS0PIiljbeumRcL90.S0H8z294y5','user','ak_fc8d645ab53b18ec','2023-07-20 10:18:00',NULL);

