Description
Properties
| Name | Value |
|---|---|
| File Collation | |
| File Group | |
| Filestream File Group | |
| Is Partitioned | False |
| Partitioned Column | |
| Partition Scheme | |
| File Groups | |
| Filestream Partition Scheme | |
| Filestream File Groups | |
| Heap | False |
| Full Text Catalog | |
| Full Text | |
| Compression | NONE |
| Row Count (~) | 1906 |
| Created | 12/12/2019 3:08:59 PM |
| Last Modified | 11/12/2023 9:08:57 AM |
Columns
20| Key | Name | Data Type | Length | Precision | Scale | Not Null | Identity | Rule | Default | Computed | Persisted | Description |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| transact_id | int | 4 | 10 | 0 | True |
1 - 1 | False |
False |
||||
| id_pago | int | 4 | 10 | 0 | True |
False |
False |
|||||
| plataforma_pago | varchar | 10 | 0 | 0 | True |
False |
False |
|||||
| merchant_id | bigint | 8 | 19 | 0 | False |
False |
False |
|||||
| contraparte | int | 4 | 10 | 0 | False |
False |
False |
|||||
| saas_usuario | int | 4 | 10 | 0 | False |
False |
False |
|||||
| user_id | int | 4 | 10 | 0 | False |
False |
False |
|||||
| producto | int | 4 | 10 | 0 | True |
False |
False |
|||||
| vigencia | datetime | 8 | 23 | 3 | True |
False |
False |
|||||
| fecha_transaccion | datetime | 8 | 23 | 3 | False |
False |
False |
|||||
| fecha_confirmacion | datetime | 8 | 23 | 3 | False |
False |
False |
|||||
| created | datetime | 8 | 23 | 3 | True |
(getdate()) | False |
False |
||||
| valor | decimal | 9 | 18 | 2 | False |
False |
False |
|||||
| moneda | varchar | 3 | 0 | 0 | False |
False |
False |
|||||
| status | varchar | 20 | 0 | 0 | True |
False |
False |
|||||
| motivo | varchar | 100 | 0 | 0 | False |
False |
False |
|||||
| preference_id | varchar | 200 | 0 | 0 | False |
False |
False |
|||||
| payment_id | bigint | 8 | 19 | 0 | False |
False |
False |
|||||
| facturado | bit | 1 | 1 | 0 | False |
(0) | False |
False |
||||
| fecha_facturado | date | 3 | 10 | 0 | False |
False |
False |
Indexes
4SQL Script
Copy
CREATE TABLE dbo.pagos_transacciones (
transact_id int IDENTITY,
id_pago int NOT NULL,
plataforma_pago varchar(10) NOT NULL,
merchant_id bigint NULL,
contraparte int NULL,
saas_usuario int NULL,
user_id int NULL,
producto int NOT NULL,
vigencia datetime NOT NULL,
fecha_transaccion datetime NULL,
fecha_confirmacion datetime NULL,
created datetime NOT NULL CONSTRAINT DF_pagos_transacciones_created DEFAULT (getdate()),
valor decimal(18, 2) NULL,
moneda varchar(3) NULL,
status varchar(20) NOT NULL,
motivo varchar(100) NULL,
preference_id varchar(200) NULL,
payment_id bigint NULL,
facturado bit NULL DEFAULT (0),
fecha_facturado date NULL,
PRIMARY KEY CLUSTERED (transact_id) WITH (FILLFACTOR = 80)
)
ON [PRIMARY]
GO
CREATE INDEX idxContrapartePrepagos
ON dbo.pagos_transacciones (contraparte, status)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
CREATE INDEX idxPagosStatus
ON dbo.pagos_transacciones (plataforma_pago, fecha_transaccion, status)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
CREATE INDEX idxPagoTransacciones
ON dbo.pagos_transacciones (status, preference_id)
INCLUDE (contraparte)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
transact_id int IDENTITY,
id_pago int NOT NULL,
plataforma_pago varchar(10) NOT NULL,
merchant_id bigint NULL,
contraparte int NULL,
saas_usuario int NULL,
user_id int NULL,
producto int NOT NULL,
vigencia datetime NOT NULL,
fecha_transaccion datetime NULL,
fecha_confirmacion datetime NULL,
created datetime NOT NULL CONSTRAINT DF_pagos_transacciones_created DEFAULT (getdate()),
valor decimal(18, 2) NULL,
moneda varchar(3) NULL,
status varchar(20) NOT NULL,
motivo varchar(100) NULL,
preference_id varchar(200) NULL,
payment_id bigint NULL,
facturado bit NULL DEFAULT (0),
fecha_facturado date NULL,
PRIMARY KEY CLUSTERED (transact_id) WITH (FILLFACTOR = 80)
)
ON [PRIMARY]
GO
CREATE INDEX idxContrapartePrepagos
ON dbo.pagos_transacciones (contraparte, status)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
CREATE INDEX idxPagosStatus
ON dbo.pagos_transacciones (plataforma_pago, fecha_transaccion, status)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
CREATE INDEX idxPagoTransacciones
ON dbo.pagos_transacciones (status, preference_id)
INCLUDE (contraparte)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
Depends On
1- Fidelitas
Used By
28- dbo.cron_confirmar_pagos
- dbo.Imperium_contratistas_prepagos
- dbo.IV_panel_reports
- dbo.IV_panel_reports2
- dbo.LN_contrapartes_
- dbo.LN_contrapartes_DEV
- dbo.LN_contrapartes_email
- dbo.LN_contrapartes_login_pago
- dbo.LN_contrapartes_queue_
- dbo.LN_contrapartes_queue_07122022
- dbo.LN_contrapartes_queue_2
- dbo.LN_contrapartes_queue_ID
- dbo.LN_contrapartes_queue_NEW_
- dbo.LN_contrapartes_sc
- dbo.LN_dashboard_cliente
- dbo.LN_dashboard_cliente_0822
- dbo.LN_dashboard_cliente_13052020
- dbo.LN_dashboard_cliente_2020
- dbo.LN_dashboard_cliente_20200403
- dbo.LN_dashboard_cliente_2024
- dbo.LN_dashboard_cliente_21-08-2022-AGB
- dbo.LN_dashboard_cliente_AB
- dbo.LN_dashboard_cliente_AGB
- dbo.LN_dashboard_cliente_MIS
- dbo.LN_dashboard_cliente_ppp
- dbo.LN_pagos_status_report
- dbo.LN_panel_reports
- dbo.pagos_productos