dbo.gdl_doc_legajo

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

True

Full Text Catalog
Full Text
Compression NONE
Row Count (~) 0
Created 3/6/2025 6:55:53 PM
Last Modified 3/6/2025 6:55:57 PM

Columns

29
Key Name Data Type Length Precision Scale Not Null Identity Rule Default Computed Persisted Description
external_url varchar 255 0 0

False

False

False

internal_url varchar 255 0 0

False

False

False

legajo int 4 10 0

True

False

False

tipo_doc int 4 10 0

True

False

False

version int 4 10 0

True

False

False

verificacion datetime 8 23 3

False

False

False

verificado_por int 4 10 0

False

False

False

ingresado datetime 8 23 3

False

False

False

ingresado_por int 4 10 0

False

False

False

vigencia datetime 8 23 3

False

False

False

tolerancia int 4 10 0

False

False

False

certificado_por int 4 10 0

False

False

False

fecha_doc datetime 8 23 3

False

False

False

cierre_ejercicio datetime 8 23 3

False

False

False

motivo_rechazo varchar 300 0 0

False

False

False

estado_doc varchar 1 0 0

False

False

False

obligatorio tinyint 1 3 0

False

False

False

certificacion tinyint 1 3 0

False

False

False

certificado datetime 8 23 3

False

False

False

envio_preaviso datetime 8 23 3

False

False

False

ultima_notificacion datetime 8 23 3

False

False

False

notificaciones_acum int 4 10 0

False

False

False

ultima_activacion datetime 8 23 3

False

False

False

activaciones_acum int 4 10 0

False

False

False

vencimiento_carga datetime 8 23 3

False

False

False

periodo_desde datetime 8 23 3

False

False

False

periodo_hasta datetime 8 23 3

False

False

False

rechazado datetime 8 23 3

False

False

False

rechazado_por int 4 10 0

False

False

False

Indexes

1
Key Name Columns Unique Type Description
XPKgdl_doc_legajo legajo, tipo_doc, version

True

Foreign Keys

4
Name Columns Description
R_16 legajo
R_18 tipo_doc
R_30 entidad_cert
R_35 estado_doc

SQL Script

Copy
CREATE TABLE dbo.gdl_doc_legajo (
  external_url varchar(255) NULL,
  internal_url varchar(255) NULL,
  legajo int NOT NULL,
  tipo_doc int NOT NULL,
  version int NOT NULL,
  verificacion datetime NULL,
  verificado_por int NULL,
  ingresado datetime NULL,
  ingresado_por int NULL,
  vigencia datetime NULL,
  tolerancia int NULL,
  certificado_por int NULL,
  fecha_doc datetime NULL,
  cierre_ejercicio datetime NULL,
  motivo_rechazo varchar(300) NULL,
  estado_doc varchar(1) NULL,
  obligatorio tinyint NULL,
  certificacion tinyint NULL,
  certificado datetime NULL,
  envio_preaviso datetime NULL,
  ultima_notificacion datetime NULL,
  notificaciones_acum int NULL,
  ultima_activacion datetime NULL,
  activaciones_acum int NULL,
  vencimiento_carga datetime NULL,
  periodo_desde datetime NULL,
  periodo_hasta datetime NULL,
  rechazado datetime NULL,
  rechazado_por int NULL,
  CONSTRAINT XPKgdl_doc_legajo PRIMARY KEY NONCLUSTERED (legajo, tipo_doc, version) WITH (FILLFACTOR = 90)
)
ON [PRIMARY]
GO

ALTER TABLE dbo.gdl_doc_legajo
  ADD CONSTRAINT R_16 FOREIGN KEY (legajo) REFERENCES dbo.gdl_legajos (legajo)
GO

ALTER TABLE dbo.gdl_doc_legajo
  ADD CONSTRAINT R_18 FOREIGN KEY (tipo_doc) REFERENCES dbo.gdl_tipo_doc (tipo_doc)
GO

ALTER TABLE dbo.gdl_doc_legajo
  ADD CONSTRAINT R_30 FOREIGN KEY (certificado_por) REFERENCES dbo.gdl_entidad_cert (entidad_cert)
GO

ALTER TABLE dbo.gdl_doc_legajo
  ADD CONSTRAINT R_35 FOREIGN KEY (estado_doc) REFERENCES dbo.gdl_estados_doc (estado_doc)
GO