Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE TABLE `adeudado_ot` (
- `id` int(11) NOT NULL,
- `monto` int(11) NOT NULL,
- `ot_documento_id` int(11) NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
- --
- -- Índices para tablas volcadas
- --
- --
- -- Indices de la tabla `adeudado_ot`
- --
- ALTER TABLE `adeudado_ot`
- ADD PRIMARY KEY (`id`),
- ADD UNIQUE KEY `unico` (`ot_documento_id`),
- ADD KEY `fk_adeudado_ot_ot_documento1_idx` (`ot_documento_id`);
- --
- -- AUTO_INCREMENT de las tablas volcadas
- --
- --
- -- AUTO_INCREMENT de la tabla `adeudado_ot`
- --
- ALTER TABLE `adeudado_ot`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
- --
- -- Restricciones para tablas volcadas
- --
- --
- -- Filtros para la tabla `adeudado_ot`
- --
- ALTER TABLE `adeudado_ot`
- ADD CONSTRAINT `fk_adeudado_ot_ot_documento1` FOREIGN KEY (`ot_documento_id`) REFERENCES `ot_documento` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement