Skip to content

Instantly share code, notes, and snippets.

@codigoconjuan
Created September 6, 2022 16:04
Show Gist options
  • Select an option

  • Save codigoconjuan/55c8521c79b458344f95fc938d3df9a0 to your computer and use it in GitHub Desktop.

Select an option

Save codigoconjuan/55c8521c79b458344f95fc938d3df9a0 to your computer and use it in GitHub Desktop.
Base de datos de Registro
CREATE TABLE `registros` (
`id` int NOT NULL AUTO_INCREMENT,
`paquete_id` int DEFAULT NULL,
`pago_id` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`token` varchar(8) DEFAULT NULL,
`usuario_id` int DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `usuarioId` (`usuario_id`),
KEY `paquete_id` (`paquete_id`),
CONSTRAINT `registros_ibfk_1` FOREIGN KEY (`usuario_id`) REFERENCES `usuarios` (`id`),
CONSTRAINT `registros_ibfk_2` FOREIGN KEY (`paquete_id`) REFERENCES `paquetes` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
@Guemchon
Copy link

Very important good😊🤙🏾

@AxelDesarrolloWeb
Copy link

Sígueme!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment