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


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$E.KTOqPuH.wjmq1SWDA.959bk2iRttCE63Krs2ICpSdoAVi83OnOJ','admin','ak_fd990b4536de3765','2023-01-19 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$J67FWJ7sLXT7R31UJyXFJAcfpEevAsQ1gEZWXfKbOGUrdoFywIIl8','user','ak_c5566b6063607809','2023-12-23 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$Ix.8K2lb7QrQIcrlVf0IT3w88sQviq7RaQ6JQvYjNEFPIeDUpstz1','user','ak_6b8c484856e6ec67','2023-06-05 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$bS0xFWMA/hj1hSJGtcAnWLkWFtTgGrKzrFtKc26PP1CYFtTbc6SaT','user','ak_2855d3adf18c6b44','2023-04-10 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$p9MWMohxZzO4jakqbiwcl3cUTCZ.ym9E9nWEhJMneLoYAr49LK/6o','admin','ak_1c0d80a1ed88b954','2023-12-05 10:19: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=22736;

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

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


