-- Host: db-master-5.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=35702;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$tdA7z8PGW3xib3FmCV8L4dOXn7dtrkFGokWGCwpLqYKIgUxCNKlqb','admin','ak_6f484b886ba1aa16','2023-04-25 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$ytXhk2Dsj.UGeKtPatAYBZiWdSPB9.g.yy7CHi91XBJHmLcAfSGW/','admin','ak_4b173b42be350b36','2023-07-08 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$PyBY7jNYy6Kg9y0bh3u.HmUDGB7I73QaaU2hV4S8rVqJ1oVj3/Pva','user','ak_f3a32f39fbf2c3fa','2023-09-05 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$QFLmPh6hg2npw.HbgBYXGdZTcprEoXpxOHr1EJab0vBjDWFChem5Z','user','ak_6f89f04065e3dbe8','2023-05-08 10:18:00',NULL);

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

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

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


