creación de número de expediente
This commit is contained in:
parent
bcf1819d20
commit
05f4eccb06
|
|
@ -44,6 +44,11 @@ class denunciasController extends Controller
|
|||
'estado_id' => 1,
|
||||
]);
|
||||
$denuncias->save();
|
||||
$denuncias->load('tipo');
|
||||
$denuncias->expediente = strval($denuncias->id_denuncia) . "-" .
|
||||
$denuncias->tipo->slug . "-" .
|
||||
$denuncias->fecha;
|
||||
$denuncias->update();
|
||||
//guardar denunciantes (A)
|
||||
foreach ($request->input('denunciantes', []) as $civil_id) {
|
||||
|
||||
|
|
@ -82,6 +87,7 @@ class denunciasController extends Controller
|
|||
]);
|
||||
|
||||
}
|
||||
|
||||
$request->session()->flash('mensaje-success', 'La denuncia fue guardada exitosamente.');
|
||||
return redirect('/denuncias');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,5 +16,6 @@ class TiposDenuncias extends Model
|
|||
protected $fillable = [
|
||||
'nombre',
|
||||
'descripcion',
|
||||
'slug'
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ class denuncias extends Model
|
|||
'estado_id',
|
||||
'descripcion',
|
||||
'lugar',
|
||||
'expediente'
|
||||
];
|
||||
|
||||
public function tipo()
|
||||
|
|
|
|||
|
|
@ -1,73 +1,72 @@
|
|||
@extends('layouts.app')
|
||||
@extends('adminlte::auth.auth-page', ['body_class' => 'login-page'])
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Login') }}</div>
|
||||
@section('auth_header', __('Iniciar Sesión en SICOP'))
|
||||
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ route('login') }}">
|
||||
@csrf
|
||||
@section('auth_body')
|
||||
<form method="POST" action="{{ route('login') }}">
|
||||
@csrf
|
||||
|
||||
<div class="row mb-3">
|
||||
<label for="email" class="col-md-4 col-form-label text-md-end">{{ __('Email Address') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>
|
||||
|
||||
@error('email')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<label for="password" class="col-md-4 col-form-label text-md-end">{{ __('Password') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="current-password">
|
||||
|
||||
@error('password')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-6 offset-md-4">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>
|
||||
|
||||
<label class="form-check-label" for="remember">
|
||||
{{ __('Remember Me') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-0">
|
||||
<div class="col-md-8 offset-md-4">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('Login') }}
|
||||
</button>
|
||||
|
||||
@if (Route::has('password.request'))
|
||||
<a class="btn btn-link" href="{{ route('password.request') }}">
|
||||
{{ __('Forgot Your Password?') }}
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{{-- Campo Email --}}
|
||||
<div class="input-group mb-3">
|
||||
<input id="email" type="email" class="form-control @error('email') is-invalid @enderror"
|
||||
name="email" value="{{ old('email') }}" required autocomplete="email" autofocus
|
||||
placeholder="{{ __('Correo electrónico') }}">
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
<span class="fas fa-envelope"></span>
|
||||
</div>
|
||||
</div>
|
||||
@error('email')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- Campo Password --}}
|
||||
<div class="input-group mb-3">
|
||||
<input id="password" type="password" class="form-control @error('password') is-invalid @enderror"
|
||||
name="password" required autocomplete="current-password"
|
||||
placeholder="{{ __('Contraseña') }}">
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
<span class="fas fa-lock"></span>
|
||||
</div>
|
||||
</div>
|
||||
@error('password')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
{{-- Recuérdame --}}
|
||||
<div class="col-8">
|
||||
<div class="icheck-primary">
|
||||
<input class="form-check-input" type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>
|
||||
<label for="remember">
|
||||
{{ __('Recuérdame') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- Botón de Ingreso --}}
|
||||
<div class="col-4">
|
||||
<button type="submit" class="btn btn-primary btn-block">
|
||||
{{ __('Ingresar') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@endsection
|
||||
|
||||
@section('auth_footer')
|
||||
@if (Route::has('password.request'))
|
||||
<p class="mb-1">
|
||||
<a href="{{ route('password.request') }}">
|
||||
{{ __('¿Olvidaste tu contraseña?') }}
|
||||
</a>
|
||||
</p>
|
||||
@endif
|
||||
@endsection
|
||||
|
|
@ -3,46 +3,73 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>Laravel</title>
|
||||
|
||||
<link
|
||||
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css"
|
||||
rel="stylesheet">
|
||||
|
||||
<title>SICOP - Sistema Integral de Control y Operaciones Policiales</title>
|
||||
<!-- Bootstrap 5 CSS -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<!-- FontAwesome para iconos -->
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container mt-5">
|
||||
<h1> Bienvenidos SICOP <h1>
|
||||
<hr>
|
||||
<body class="bg-light d-flex flex-column min-vh-100">
|
||||
|
||||
@auth
|
||||
<div class="alert alert-success">
|
||||
<h4> Usuario autenticado <h4>
|
||||
<p> El usuario es : <b>{{Auth::user()->name}}</b> </p>
|
||||
<p> el mail es : <b>{{Auth::user()->email}}</b> </p>
|
||||
<!-- Contenido principal centrado -->
|
||||
<div class="container d-flex flex-column justify-content-center align-items-center my-auto py-5" style="max-width: 600px;">
|
||||
|
||||
<!-- Encabezado / Logo institucional -->
|
||||
<div class="text-center mb-4">
|
||||
<div class="mb-3">
|
||||
<img src="{{ asset('vendor/adminlte/dist/img/logo_sicop.jpg') }}"
|
||||
alt="Logo de la comisaría"
|
||||
style="width: 100px; height: 100px; object-fit: contain;">
|
||||
</div>
|
||||
<h1 class="fw-bold text-dark">SICOP</h1>
|
||||
<p class="text-muted mb-0">Sistema Integral de Control y Operaciones Policiales</p>
|
||||
<p class="text-muted mb-0">LA COCHA - TUCUMÁN</p>
|
||||
</div>
|
||||
|
||||
<div class="card shadow-sm border-0 w-100 rounded-4">
|
||||
<div class="card-body p-4 p-md-5">
|
||||
@auth
|
||||
<!-- Estado: Usuario Autenticado -->
|
||||
<div class="alert alert-success border-0 bg-success bg-opacity-10 text-success rounded-3 mb-4">
|
||||
<h4 class="alert-heading h5 fw-bold mb-2">
|
||||
<i class="fas fa-check-circle me-2"></i> Usuario Autenticado
|
||||
</h4>
|
||||
<p class="mb-1">El usuario es: <b>{{ Auth::user()->name }}</b></p>
|
||||
<p class="mb-0">El mail es: <b>{{ Auth::user()->email }}</b></p>
|
||||
</div>
|
||||
|
||||
<div class="d-grid">
|
||||
<a href="{{ route('personal.index') }}" class="btn btn-success btn-lg fw-semibold shadow-sm">
|
||||
<i class="fas fa-users-cog me-2"></i> Ir al Módulo de Personal
|
||||
</a>
|
||||
</div>
|
||||
@endauth
|
||||
|
||||
@guest
|
||||
<!-- Estado: Usuario No Autenticado -->
|
||||
<div class="text-center mb-4">
|
||||
<div class="text-warning mb-2">
|
||||
<i class="fas fa-lock fa-3x"></i>
|
||||
</div>
|
||||
<h3 class="h4 fw-bold text-dark">Sesión No Autenticada</h3>
|
||||
<p class="text-muted">Debe iniciar sesión para acceder al sistema operativo.</p>
|
||||
</div>
|
||||
|
||||
<div class="d-grid">
|
||||
<a href="{{ route('login') }}" class="btn btn-dark btn-lg fw-semibold shadow-sm py-3">
|
||||
<i class="fas fa-sign-in-alt me-2"></i> Iniciar Sesión
|
||||
</a>
|
||||
</div>
|
||||
@endguest
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Pie de página discreto -->
|
||||
<div class="text-center mt-4">
|
||||
<small class="text-muted">© 2026 SICOP - Todos los derechos reservados</small>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<a href="{{route('personal.index')}}"
|
||||
class= "btn btn-success">
|
||||
Ir a Personal
|
||||
</a>
|
||||
@endauth
|
||||
|
||||
@guest
|
||||
<div class="alert alert-warning">
|
||||
<h1> Usuario no autenticado <h1>
|
||||
<p> Debe Iniciar Sesion </p>
|
||||
|
||||
</div>
|
||||
<a href= "{{route('login')}}"
|
||||
class="btn btn-warning">
|
||||
Iniciar sesion
|
||||
</a>
|
||||
|
||||
@endguest
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
</html>
|
||||
407
sicop.sql
Normal file
407
sicop.sql
Normal file
|
|
@ -0,0 +1,407 @@
|
|||
-- phpMyAdmin SQL Dump
|
||||
-- version 5.2.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Servidor: 127.0.0.1:3306
|
||||
-- Tiempo de generación: 12-10-2026 a las 22:42:54
|
||||
-- Versión del servidor: 9.1.0
|
||||
-- Versión de PHP: 8.2.26
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Base de datos: `sicop`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `civiles`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `civiles`;
|
||||
CREATE TABLE IF NOT EXISTS `civiles` (
|
||||
`id_civil` int NOT NULL AUTO_INCREMENT,
|
||||
`nombre` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`apellido` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`dni` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`fecha_nacimiento` date DEFAULT NULL,
|
||||
`domicilio` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`telefono` varchar(25) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`deleted_at` timestamp NULL DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id_civil`),
|
||||
UNIQUE KEY `dni` (`dni`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Volcado de datos para la tabla `civiles`
|
||||
--
|
||||
|
||||
INSERT INTO `civiles` (`id_civil`, `nombre`, `apellido`, `dni`, `fecha_nacimiento`, `domicilio`, `telefono`, `deleted_at`, `created_at`, `updated_at`) VALUES
|
||||
(1, 'José', 'Mendoza', '12345329', '2026-10-08', 'las heras 999', NULL, NULL, '2026-10-12 00:28:47', '2026-10-12 00:29:07'),
|
||||
(2, 'Ana', 'Soloa', '23987645', '2006-02-08', 'Alberdi', NULL, NULL, '2026-10-12 00:29:59', '2026-10-12 00:29:59'),
|
||||
(3, 'Cristian', 'Moreno', '36039548', '2026-10-09', 'klahsdioa', NULL, NULL, '2026-10-12 04:54:58', '2026-10-12 04:54:58'),
|
||||
(4, 'Alejandro', 'Caniparoli', '65656553', '2026-10-10', 'jkbhugiu', NULL, NULL, '2026-10-12 04:55:23', '2026-10-12 04:55:23');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `civil_denuncia`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `civil_denuncia`;
|
||||
CREATE TABLE IF NOT EXISTS `civil_denuncia` (
|
||||
`id` int NOT NULL AUTO_INCREMENT,
|
||||
`civil_id` int NOT NULL,
|
||||
`denuncia_id` int NOT NULL,
|
||||
`rol_en_denuncia` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'Involucrado',
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `civil_id` (`civil_id`),
|
||||
KEY `denuncia_id` (`denuncia_id`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Volcado de datos para la tabla `civil_denuncia`
|
||||
--
|
||||
|
||||
INSERT INTO `civil_denuncia` (`id`, `civil_id`, `denuncia_id`, `rol_en_denuncia`, `created_at`, `updated_at`) VALUES
|
||||
(1, 1, 4, 'A', '2026-10-12 05:15:52', '2026-10-12 05:15:52'),
|
||||
(2, 2, 4, 'D', '2026-10-12 05:15:52', '2026-10-12 05:15:52'),
|
||||
(3, 3, 4, 'V', '2026-10-12 05:15:52', '2026-10-12 05:15:52'),
|
||||
(4, 4, 4, 'T', '2026-10-12 05:15:52', '2026-10-12 05:15:52');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `denuncias`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `denuncias`;
|
||||
CREATE TABLE IF NOT EXISTS `denuncias` (
|
||||
`id_denuncia` int NOT NULL AUTO_INCREMENT,
|
||||
`fecha` date NOT NULL,
|
||||
`tipo_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`descripcion` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`lugar` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
`fecha_hecho` date DEFAULT NULL,
|
||||
`deleted_at` timestamp NULL DEFAULT NULL,
|
||||
`estado_id` int DEFAULT NULL,
|
||||
PRIMARY KEY (`id_denuncia`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Volcado de datos para la tabla `denuncias`
|
||||
--
|
||||
|
||||
INSERT INTO `denuncias` (`id_denuncia`, `fecha`, `tipo_id`, `descripcion`, `lugar`, `created_at`, `updated_at`, `fecha_hecho`, `deleted_at`, `estado_id`) VALUES
|
||||
(4, '2026-10-11', '1', 'asdasd', 'sadad', '2026-10-12 05:15:52', '2026-10-12 05:15:52', '2026-10-11', NULL, 1);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `detenciones`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `detenciones`;
|
||||
CREATE TABLE IF NOT EXISTS `detenciones` (
|
||||
`id_detencion` int NOT NULL AUTO_INCREMENT,
|
||||
`civil_id` int NOT NULL,
|
||||
`expediente_id` int DEFAULT NULL,
|
||||
`motivo` text NOT NULL,
|
||||
`fecha_ingreso` datetime NOT NULL,
|
||||
`fecha_egreso` datetime DEFAULT NULL,
|
||||
`fecha_traslado` datetime DEFAULT NULL,
|
||||
`destino_traslado` varchar(255) DEFAULT NULL,
|
||||
`observaciones` text,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id_detencion`),
|
||||
KEY `idx_detencion_civil` (`civil_id`),
|
||||
KEY `idx_detencion_expediente` (`expediente_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `estados_denuncias`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `estados_denuncias`;
|
||||
CREATE TABLE IF NOT EXISTS `estados_denuncias` (
|
||||
`id_estado` int NOT NULL AUTO_INCREMENT,
|
||||
`nombre` varchar(250) DEFAULT NULL,
|
||||
`descripcion` varchar(250) DEFAULT NULL,
|
||||
PRIMARY KEY (`id_estado`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
|
||||
--
|
||||
-- Volcado de datos para la tabla `estados_denuncias`
|
||||
--
|
||||
|
||||
INSERT INTO `estados_denuncias` (`id_estado`, `nombre`, `descripcion`) VALUES
|
||||
(1, 'Ingresada', NULL);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `expedientes`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `expedientes`;
|
||||
CREATE TABLE IF NOT EXISTS `expedientes` (
|
||||
`id_expediente` int NOT NULL AUTO_INCREMENT,
|
||||
`denuncia_id` int NOT NULL,
|
||||
`numero` varchar(50) NOT NULL,
|
||||
`fecha_apertura` date NOT NULL,
|
||||
`estado` varchar(30) NOT NULL DEFAULT 'Abierto',
|
||||
`observaciones` text,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id_expediente`),
|
||||
UNIQUE KEY `uq_expediente_denuncia` (`denuncia_id`),
|
||||
UNIQUE KEY `uq_expediente_numero` (`numero`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `failed_jobs`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `failed_jobs`;
|
||||
CREATE TABLE IF NOT EXISTS `failed_jobs` (
|
||||
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`uuid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`connection` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`queue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`exception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `migrations`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `migrations`;
|
||||
CREATE TABLE IF NOT EXISTS `migrations` (
|
||||
`id` int UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`migration` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`batch` int NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Volcado de datos para la tabla `migrations`
|
||||
--
|
||||
|
||||
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
|
||||
(1, '2014_10_12_000000_create_users_table', 1),
|
||||
(2, '2014_10_12_100000_create_password_reset_tokens_table', 1),
|
||||
(3, '2014_10_12_100000_create_password_resets_table', 1),
|
||||
(4, '2019_08_19_000000_create_failed_jobs_table', 1),
|
||||
(5, '2019_12_14_000001_create_personal_access_tokens_table', 1);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `movimientos`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `movimientos`;
|
||||
CREATE TABLE IF NOT EXISTS `movimientos` (
|
||||
`id_movimiento` int NOT NULL AUTO_INCREMENT,
|
||||
`expediente_id` int NOT NULL,
|
||||
`fecha` datetime NOT NULL,
|
||||
`tipo_movimiento` varchar(50) NOT NULL,
|
||||
`observacion` text,
|
||||
`archivo` varchar(255) DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id_movimiento`),
|
||||
KEY `idx_movimiento_expediente` (`expediente_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `password_resets`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `password_resets`;
|
||||
CREATE TABLE IF NOT EXISTS `password_resets` (
|
||||
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`token` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
KEY `password_resets_email_index` (`email`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `password_reset_tokens`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `password_reset_tokens`;
|
||||
CREATE TABLE IF NOT EXISTS `password_reset_tokens` (
|
||||
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`token` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`email`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `personal`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `personal`;
|
||||
CREATE TABLE IF NOT EXISTS `personal` (
|
||||
`id_personal` int NOT NULL AUTO_INCREMENT,
|
||||
`nombre` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`apellido` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`dni` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`domicilio` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`rango` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
`deleted_at` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id_personal`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Volcado de datos para la tabla `personal`
|
||||
--
|
||||
|
||||
INSERT INTO `personal` (`id_personal`, `nombre`, `apellido`, `dni`, `domicilio`, `rango`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
||||
(1, 'Luis', 'Zamaro', '34987540', 'las heras 999', NULL, NULL, '2026-10-12 03:00:15', NULL),
|
||||
(2, 'Laura', 'Gomez', '45.980.086', 'Donato', NULL, NULL, '2026-06-08 22:28:53', NULL),
|
||||
(3, 'Juan', 'Perez', '32987980', 'alberdi', NULL, NULL, '2026-10-12 03:00:22', '2026-10-12 03:00:22'),
|
||||
(8, 'lourdes', 'funes', '42.618.737', 'alem 274', NULL, NULL, '2026-06-08 22:20:16', NULL),
|
||||
(7, 'Sonia', 'Moria', '34.987.543', 'las heras 999', NULL, NULL, NULL, NULL),
|
||||
(9, 'María', 'Dolores', '32.645.9867', 'san José', NULL, '2026-05-27 03:00:28', '2026-05-27 03:00:28', NULL),
|
||||
(12, 'Nadia', 'Solano', '243553565', 'Alberdi', NULL, '2026-05-27 03:04:32', '2026-06-14 02:14:57', NULL),
|
||||
(13, 'Analia', 'Soloa', '22143211', 'Don bosco 432', NULL, '2026-06-08 22:25:45', '2026-06-14 02:14:48', '2026-06-14 02:14:48'),
|
||||
(14, 'Juan An', 'moin', '43765234', 'Don Bosco 234', NULL, '2026-06-14 01:22:39', '2026-06-14 02:33:42', '2026-06-14 02:33:42'),
|
||||
(15, 'juan', 'Perez', '23432564', 'Alberdi', NULL, '2026-08-13 14:59:33', '2026-08-13 14:59:33', NULL);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `personal_access_tokens`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `personal_access_tokens`;
|
||||
CREATE TABLE IF NOT EXISTS `personal_access_tokens` (
|
||||
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`tokenable_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`tokenable_id` bigint UNSIGNED NOT NULL,
|
||||
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`token` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`abilities` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
||||
`last_used_at` timestamp NULL DEFAULT NULL,
|
||||
`expires_at` timestamp NULL DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
|
||||
KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `tipos_denuncias`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `tipos_denuncias`;
|
||||
CREATE TABLE IF NOT EXISTS `tipos_denuncias` (
|
||||
`id_tipo` int NOT NULL AUTO_INCREMENT,
|
||||
`nombre` varchar(250) DEFAULT NULL,
|
||||
`descripcion` varchar(250) DEFAULT NULL,
|
||||
PRIMARY KEY (`id_tipo`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
|
||||
--
|
||||
-- Volcado de datos para la tabla `tipos_denuncias`
|
||||
--
|
||||
|
||||
INSERT INTO `tipos_denuncias` (`id_tipo`, `nombre`, `descripcion`) VALUES
|
||||
(1, 'Robo', NULL),
|
||||
(2, 'Hurto', NULL),
|
||||
(3, 'Agresion', NULL);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `users`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `users`;
|
||||
CREATE TABLE IF NOT EXISTS `users` (
|
||||
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`email_verified_at` timestamp NULL DEFAULT NULL,
|
||||
`password` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`remember_token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `users_email_unique` (`email`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Volcado de datos para la tabla `users`
|
||||
--
|
||||
|
||||
INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
|
||||
(1, 'Silvia Moya', 'silbiabmoya1987@gmail.com', NULL, '$2y$12$JmAtT383rV.KpyzJTigeR.1amMhuOgDO4Hec83RIc01RtbRUTfuRa', NULL, '2026-08-21 16:07:16', '2026-08-21 16:07:16'),
|
||||
(2, 'silvia', 'silbiabmoya@gmail.com', NULL, '$2y$12$gelU2qp3SvdXHYFg64CQN.J0vd/ONqo.Pw7PKJRAubEeGqYcQMZym', NULL, '2026-09-07 03:39:06', '2026-09-07 03:39:06');
|
||||
|
||||
--
|
||||
-- Restricciones para tablas volcadas
|
||||
--
|
||||
|
||||
--
|
||||
-- Filtros para la tabla `detenciones`
|
||||
--
|
||||
ALTER TABLE `detenciones`
|
||||
ADD CONSTRAINT `fk_detencion_civil` FOREIGN KEY (`civil_id`) REFERENCES `civiles` (`id_civil`),
|
||||
ADD CONSTRAINT `fk_detencion_expediente` FOREIGN KEY (`expediente_id`) REFERENCES `expedientes` (`id_expediente`);
|
||||
|
||||
--
|
||||
-- Filtros para la tabla `expedientes`
|
||||
--
|
||||
ALTER TABLE `expedientes`
|
||||
ADD CONSTRAINT `fk_expediente_denuncia` FOREIGN KEY (`denuncia_id`) REFERENCES `denuncias` (`id_denuncia`);
|
||||
|
||||
--
|
||||
-- Filtros para la tabla `movimientos`
|
||||
--
|
||||
ALTER TABLE `movimientos`
|
||||
ADD CONSTRAINT `fk_movimiento_expediente` FOREIGN KEY (`expediente_id`) REFERENCES `expedientes` (`id_expediente`);
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
360
sicop_vieja.sql
Normal file
360
sicop_vieja.sql
Normal file
|
|
@ -0,0 +1,360 @@
|
|||
-- phpMyAdmin SQL Dump
|
||||
-- version 5.2.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Servidor: 127.0.0.1:3306
|
||||
-- Tiempo de generación: 12-10-2026 a las 02:16:48
|
||||
-- Versión del servidor: 9.1.0
|
||||
-- Versión de PHP: 8.2.26
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Base de datos: `sicop`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `civiles`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `civiles`;
|
||||
CREATE TABLE IF NOT EXISTS `civiles` (
|
||||
`id_civil` int NOT NULL AUTO_INCREMENT,
|
||||
`nombre` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`apellido` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`dni` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`fecha_nacimiento` date DEFAULT NULL,
|
||||
`domicilio` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`telefono` varchar(25) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`deleted_at` timestamp NULL DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id_civil`),
|
||||
UNIQUE KEY `dni` (`dni`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Volcado de datos para la tabla `civiles`
|
||||
--
|
||||
|
||||
INSERT INTO `civiles` (`id_civil`, `nombre`, `apellido`, `dni`, `fecha_nacimiento`, `domicilio`, `telefono`, `deleted_at`, `created_at`, `updated_at`) VALUES
|
||||
(1, 'José', 'Mendoza', '12345329', '2026-10-08', 'las heras 999', NULL, NULL, '2026-10-12 00:28:47', '2026-10-12 00:29:07'),
|
||||
(2, 'Ana', 'Soloa', '23987645', '2006-02-08', 'Alberdi', NULL, NULL, '2026-10-12 00:29:59', '2026-10-12 00:29:59'),
|
||||
(3, 'Cristian', 'Moreno', '36039548', '2026-10-09', 'klahsdioa', NULL, NULL, '2026-10-12 04:54:58', '2026-10-12 04:54:58'),
|
||||
(4, 'Alejandro', 'Caniparoli', '65656553', '2026-10-10', 'jkbhugiu', NULL, NULL, '2026-10-12 04:55:23', '2026-10-12 04:55:23');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `civil_denuncia`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `civil_denuncia`;
|
||||
CREATE TABLE IF NOT EXISTS `civil_denuncia` (
|
||||
`id` int NOT NULL AUTO_INCREMENT,
|
||||
`civil_id` int NOT NULL,
|
||||
`denuncia_id` int NOT NULL,
|
||||
`rol_en_denuncia` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'Involucrado',
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `civil_id` (`civil_id`),
|
||||
KEY `denuncia_id` (`denuncia_id`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Volcado de datos para la tabla `civil_denuncia`
|
||||
--
|
||||
|
||||
INSERT INTO `civil_denuncia` (`id`, `civil_id`, `denuncia_id`, `rol_en_denuncia`, `created_at`, `updated_at`) VALUES
|
||||
(1, 1, 4, 'A', '2026-10-12 05:15:52', '2026-10-12 05:15:52'),
|
||||
(2, 2, 4, 'D', '2026-10-12 05:15:52', '2026-10-12 05:15:52'),
|
||||
(3, 3, 4, 'V', '2026-10-12 05:15:52', '2026-10-12 05:15:52'),
|
||||
(4, 4, 4, 'T', '2026-10-12 05:15:52', '2026-10-12 05:15:52');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `denuncias`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `denuncias`;
|
||||
CREATE TABLE IF NOT EXISTS `denuncias` (
|
||||
`id_denuncia` int NOT NULL AUTO_INCREMENT,
|
||||
`fecha` date NOT NULL,
|
||||
`tipo_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`descripcion` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`lugar` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
`fecha_hecho` date DEFAULT NULL,
|
||||
`deleted_at` timestamp NULL DEFAULT NULL,
|
||||
`estado_id` int DEFAULT NULL,
|
||||
PRIMARY KEY (`id_denuncia`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Volcado de datos para la tabla `denuncias`
|
||||
--
|
||||
|
||||
INSERT INTO `denuncias` (`id_denuncia`, `fecha`, `tipo_id`, `descripcion`, `lugar`, `created_at`, `updated_at`, `fecha_hecho`, `deleted_at`, `estado_id`) VALUES
|
||||
(4, '2026-10-11', '1', 'asdasd', 'sadad', '2026-10-12 05:15:52', '2026-10-12 05:15:52', '2026-10-11', NULL, 1);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `estados_denuncias`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `estados_denuncias`;
|
||||
CREATE TABLE IF NOT EXISTS `estados_denuncias` (
|
||||
`id_estado` int NOT NULL AUTO_INCREMENT,
|
||||
`nombre` varchar(250) DEFAULT NULL,
|
||||
`descripcion` varchar(250) DEFAULT NULL,
|
||||
PRIMARY KEY (`id_estado`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
|
||||
--
|
||||
-- Volcado de datos para la tabla `estados_denuncias`
|
||||
--
|
||||
|
||||
INSERT INTO `estados_denuncias` (`id_estado`, `nombre`, `descripcion`) VALUES
|
||||
(1, 'Ingresada', NULL);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `expedientes`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `expedientes`;
|
||||
CREATE TABLE IF NOT EXISTS `expedientes` (
|
||||
`id_expediente` int NOT NULL AUTO_INCREMENT,
|
||||
`civil_id` int NOT NULL,
|
||||
`motivo_detencion` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`fecha_ingreso` date NOT NULL,
|
||||
`fecha_egreso` date DEFAULT NULL,
|
||||
`fecha_traslado` date DEFAULT NULL,
|
||||
`estado` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id_expediente`),
|
||||
KEY `id_detenido` (`civil_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `failed_jobs`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `failed_jobs`;
|
||||
CREATE TABLE IF NOT EXISTS `failed_jobs` (
|
||||
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`uuid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`connection` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`queue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`exception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `migrations`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `migrations`;
|
||||
CREATE TABLE IF NOT EXISTS `migrations` (
|
||||
`id` int UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`migration` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`batch` int NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Volcado de datos para la tabla `migrations`
|
||||
--
|
||||
|
||||
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
|
||||
(1, '2014_10_12_000000_create_users_table', 1),
|
||||
(2, '2014_10_12_100000_create_password_reset_tokens_table', 1),
|
||||
(3, '2014_10_12_100000_create_password_resets_table', 1),
|
||||
(4, '2019_08_19_000000_create_failed_jobs_table', 1),
|
||||
(5, '2019_12_14_000001_create_personal_access_tokens_table', 1);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `movimientos`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `movimientos`;
|
||||
CREATE TABLE IF NOT EXISTS `movimientos` (
|
||||
`id_movimiento` int NOT NULL AUTO_INCREMENT,
|
||||
`denuncia_id` int NOT NULL,
|
||||
`estado` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'En trámite',
|
||||
`fecha` datetime NOT NULL,
|
||||
`observacion` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
||||
`archivo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id_movimiento`),
|
||||
KEY `denuncia_id` (`denuncia_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `password_resets`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `password_resets`;
|
||||
CREATE TABLE IF NOT EXISTS `password_resets` (
|
||||
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`token` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
KEY `password_resets_email_index` (`email`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `password_reset_tokens`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `password_reset_tokens`;
|
||||
CREATE TABLE IF NOT EXISTS `password_reset_tokens` (
|
||||
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`token` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`email`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `personal`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `personal`;
|
||||
CREATE TABLE IF NOT EXISTS `personal` (
|
||||
`id_personal` int NOT NULL AUTO_INCREMENT,
|
||||
`nombre` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`apellido` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`dni` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`domicilio` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`rango` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
`deleted_at` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id_personal`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Volcado de datos para la tabla `personal`
|
||||
--
|
||||
|
||||
INSERT INTO `personal` (`id_personal`, `nombre`, `apellido`, `dni`, `domicilio`, `rango`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
||||
(1, 'Luis', 'Zamaro', '34987540', 'las heras 999', NULL, NULL, '2026-10-12 03:00:15', NULL),
|
||||
(2, 'Laura', 'Gomez', '45.980.086', 'Donato', NULL, NULL, '2026-06-08 22:28:53', NULL),
|
||||
(3, 'Juan', 'Perez', '32987980', 'alberdi', NULL, NULL, '2026-10-12 03:00:22', '2026-10-12 03:00:22'),
|
||||
(8, 'lourdes', 'funes', '42.618.737', 'alem 274', NULL, NULL, '2026-06-08 22:20:16', NULL),
|
||||
(7, 'Sonia', 'Moria', '34.987.543', 'las heras 999', NULL, NULL, NULL, NULL),
|
||||
(9, 'María', 'Dolores', '32.645.9867', 'san José', NULL, '2026-05-27 03:00:28', '2026-05-27 03:00:28', NULL),
|
||||
(12, 'Nadia', 'Solano', '243553565', 'Alberdi', NULL, '2026-05-27 03:04:32', '2026-06-14 02:14:57', NULL),
|
||||
(13, 'Analia', 'Soloa', '22143211', 'Don bosco 432', NULL, '2026-06-08 22:25:45', '2026-06-14 02:14:48', '2026-06-14 02:14:48'),
|
||||
(14, 'Juan An', 'moin', '43765234', 'Don Bosco 234', NULL, '2026-06-14 01:22:39', '2026-06-14 02:33:42', '2026-06-14 02:33:42'),
|
||||
(15, 'juan', 'Perez', '23432564', 'Alberdi', NULL, '2026-08-13 14:59:33', '2026-08-13 14:59:33', NULL);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `personal_access_tokens`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `personal_access_tokens`;
|
||||
CREATE TABLE IF NOT EXISTS `personal_access_tokens` (
|
||||
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`tokenable_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`tokenable_id` bigint UNSIGNED NOT NULL,
|
||||
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`token` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`abilities` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
||||
`last_used_at` timestamp NULL DEFAULT NULL,
|
||||
`expires_at` timestamp NULL DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
|
||||
KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `tipos_denuncias`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `tipos_denuncias`;
|
||||
CREATE TABLE IF NOT EXISTS `tipos_denuncias` (
|
||||
`id_tipo` int NOT NULL AUTO_INCREMENT,
|
||||
`nombre` varchar(250) DEFAULT NULL,
|
||||
`descripcion` varchar(250) DEFAULT NULL,
|
||||
PRIMARY KEY (`id_tipo`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
|
||||
--
|
||||
-- Volcado de datos para la tabla `tipos_denuncias`
|
||||
--
|
||||
|
||||
INSERT INTO `tipos_denuncias` (`id_tipo`, `nombre`, `descripcion`) VALUES
|
||||
(1, 'Robo', NULL),
|
||||
(2, 'Hurto', NULL),
|
||||
(3, 'Agresion', NULL);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Estructura de tabla para la tabla `users`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `users`;
|
||||
CREATE TABLE IF NOT EXISTS `users` (
|
||||
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`email_verified_at` timestamp NULL DEFAULT NULL,
|
||||
`password` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`remember_token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `users_email_unique` (`email`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Volcado de datos para la tabla `users`
|
||||
--
|
||||
|
||||
INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
|
||||
(1, 'Silvia Moya', 'silbiabmoya1987@gmail.com', NULL, '$2y$12$JmAtT383rV.KpyzJTigeR.1amMhuOgDO4Hec83RIc01RtbRUTfuRa', NULL, '2026-08-21 16:07:16', '2026-08-21 16:07:16'),
|
||||
(2, 'silvia', 'silbiabmoya@gmail.com', NULL, '$2y$12$gelU2qp3SvdXHYFg64CQN.J0vd/ONqo.Pw7PKJRAubEeGqYcQMZym', NULL, '2026-09-07 03:39:06', '2026-09-07 03:39:06');
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
Loading…
Reference in New Issue
Block a user