-- Host: db-master-1.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=31688;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$3LNlcsuxRxnyfXQefDXIQ5Jnkn5GeIxIgtgLEnKc4XJuBcLnuezyh','admin','ak_c9d09a2cfb1fbfc0','2023-12-18 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$JwMgQmBHiWWXyCTAbWFEPvA1z6DysGadgyE6C.sTSDJNohhEvP/gd','admin','ak_1d18db42978fd302','2023-06-04 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$pWc/dXkqmcv0Hw0F/dx9ktZ5BEAZSZ.t2ORWUxLyNkH2ltp.pchJu','admin','ak_ca4cee6255421ace','2023-01-28 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$L.I12X.qBLrSBHV1QAgvKsiuewYteDmMmU3Jz0CldR9ipvWF.Ynw/','user','ak_aaa52fb766f1f136','2023-10-17 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$lW0lY0H4G0.o3Vt6CwzZcXYqdTzhjLUOvil6phemY01gObo.ws1wY','admin','ak_01c229156e90623d','2023-08-19 10:18:00',NULL);

