Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smsManager
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
smsManager
Commits
4a968bb9
Commit
4a968bb9
authored
Jun 13, 2019
by
Ana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql de sms
parent
7c1a2802
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
122 additions
and
0 deletions
+122
-0
tablas_new.sql
tablas_new.sql
+122
-0
No files found.
tablas_new.sql
0 → 100644
View file @
4a968bb9
SET
SQL_MODE
=
"NO_AUTO_VALUE_ON_ZERO"
;
SET
AUTOCOMMIT
=
0
;
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: `intelsecuritymovistar`
--
--
-- Estructura de tabla para la tabla `sms`
--
CREATE
TABLE
`batchsms`
(
`batchsms_id`
int
(
11
)
NOT
NULL
,
`batchsms_total`
int
(
11
)
DEFAULT
NULL
,
`batchsms_procesado_ok`
int
(
11
)
DEFAULT
NULL
,
`batchsms_procesado_no_ok`
int
(
11
)
DEFAULT
NULL
,
`batchsms_enviado_ok`
int
(
11
)
DEFAULT
NULL
,
`batchsms_enviado_no_ok`
int
(
11
)
DEFAULT
NULL
,
`batchsms_ya_descargo`
int
(
11
)
DEFAULT
NULL
,
`batchsms_sin_movil`
int
(
11
)
DEFAULT
NULL
,
`batchsms_descencriptado_ok`
int
(
11
)
DEFAULT
NULL
,
`batchsms_descencriptado_no_ok`
int
(
11
)
DEFAULT
NULL
,
`batchsms_permitido`
int
(
11
)
DEFAULT
NULL
,
`batchsms_no_permitido`
int
(
11
)
DEFAULT
NULL
,
`batchsms_delivery`
int
(
11
)
DEFAULT
NULL
,
`batchsms_bounce`
int
(
11
)
DEFAULT
NULL
,
`batchsms_complaint`
int
(
11
)
DEFAULT
NULL
,
`batchsms_eliminado`
tinyint
(
1
)
DEFAULT
NULL
,
`created_at`
datetime
DEFAULT
NULL
,
`updated_at`
datetime
DEFAULT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COLLATE
=
utf8_bin
;
--
-- Estructura de tabla para la tabla `envio_sms`
--
CREATE
TABLE
`sms`
(
`sms_id`
int
(
11
)
NOT
NULL
,
`umc_id`
int
(
11
)
DEFAULT
NULL
,
`batchsms_id`
int
(
11
)
DEFAULT
NULL
,
`sms_tipo`
smallint
(
6
)
DEFAULT
NULL
,
`sms_movil`
varchar
(
60
)
COLLATE
utf8_bin
DEFAULT
NULL
,
`sms_campana`
varchar
(
20
)
COLLATE
utf8_bin
DEFAULT
NULL
,
`sms_fecha_envio`
datetime
DEFAULT
NULL
,
`sms_fecha_notificacion`
datetime
DEFAULT
NULL
,
`sms_trans_id_cliente`
varchar
(
200
)
COLLATE
utf8_bin
DEFAULT
NULL
,
`sms_from_movil`
varchar
(
60
)
COLLATE
utf8_bin
DEFAULT
NULL
,
`sms_from_mensaje`
varchar
(
160
)
COLLATE
utf8_bin
DEFAULT
NULL
,
`sms_estado`
smallint
(
6
)
DEFAULT
NULL
,
`sms_eliminado`
tinyint
(
1
)
DEFAULT
NULL
,
`created_at`
datetime
DEFAULT
NULL
,
`updated_at`
datetime
DEFAULT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COLLATE
=
utf8_bin
;
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `sms`
--
ALTER
TABLE
`batchsms`
ADD
PRIMARY
KEY
(
`batchsms_id`
);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `sms`
--
ALTER
TABLE
`batchsms`
MODIFY
`batchsms_id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
18
;
--
-- Indices de la tabla `sms`
--
ALTER
TABLE
`sms`
ADD
PRIMARY
KEY
(
`sms_id`
),
ADD
KEY
`fk_usuariomcafee_sms`
(
`umc_id`
),
ADD
KEY
`fk_batchsms`
(
`batchsms_id`
);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `sms`
--
ALTER
TABLE
`sms`
MODIFY
`sms_id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
;
--
-- Restricciones para tablas volcadas
--
--
-- Filtros para la tabla `envio_sms`
--
ALTER
TABLE
`sms`
ADD
CONSTRAINT
`fk_batchsms`
FOREIGN
KEY
(
`batchsms_id`
)
REFERENCES
`batchsms`
(
`batchsms_id`
),
ADD
CONSTRAINT
`fk_usuariomcafee_sms`
FOREIGN
KEY
(
`umc_id`
)
REFERENCES
`usuario_mcafee`
(
`umc_id`
);
ALTER
TABLE
`usuario_mcafee`
ADD
`umc_permite_sms`
TINYINT
(
1
)
NOT
NULL
DEFAULT
'1'
AFTER
`umc_eliminado`
;
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 */
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment