NJC__Documentation::DB

dbo.dt_ms_production_retur_detail

Description

Properties

Name Value
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 (~) 0
Created 9/11/2017 09:42:01
Last Modified 9/11/2017 09:42:03

Columns

Key Name Data Type Length Precision Scale Not Null Identity Rule Default Computed Persisted Description
ms_production_retur_detail_id bigint 8 19 0

True

1 - 1

False

False

ms_production_retur_id bigint 8 19 0

True

False

False

ms_item_out_detail_id bigint 8 19 0

True

False

False

retur_info varchar 255 0 0

False

False

False

quantity decimal 17 38 4

False

False

False

create_date datetime 8 23 3

False

False

False

create_by int 4 10 0

False

False

False

modify_date datetime 8 23 3

False

False

False

modify_by int 4 10 0

False

False

False

Indexes

Key Name Columns Unique Type Description
PK_dt_ms_production_retur_detail ms_production_retur_detail_id

True

Foreign Keys

Name Columns Description
FK_dt_ms_production_retur_detail_dt_ms_item_out_detail ms_item_out_detail_id
FK_dt_ms_production_retur_detail_dt_ms_production_retur ms_production_retur_id

SQL Script

CREATE TABLE dbo.dt_ms_production_retur_detail (
  ms_production_retur_detail_id bigint IDENTITY,
  ms_production_retur_id bigint NOT NULL,
  ms_item_out_detail_id bigint NOT NULL,
  retur_info varchar(255) NULL,
  quantity decimal(38, 4) NULL,
  create_date datetime NULL,
  create_by int NULL,
  modify_date datetime NULL,
  modify_by int NULL,
  CONSTRAINT PK_dt_ms_production_retur_detail PRIMARY KEY CLUSTERED (ms_production_retur_detail_id)
)
ON [PRIMARY]
GO

ALTER TABLE dbo.dt_ms_production_retur_detail WITH NOCHECK
  ADD CONSTRAINT FK_dt_ms_production_retur_detail_dt_ms_item_out_detail FOREIGN KEY (ms_item_out_detail_id) REFERENCES dbo.dt_ms_item_out_detail (ms_item_out_detail_id) NOT FOR REPLICATION
GO

ALTER TABLE dbo.dt_ms_production_retur_detail
  NOCHECK CONSTRAINT FK_dt_ms_production_retur_detail_dt_ms_item_out_detail
GO

ALTER TABLE dbo.dt_ms_production_retur_detail WITH NOCHECK
  ADD CONSTRAINT FK_dt_ms_production_retur_detail_dt_ms_production_retur FOREIGN KEY (ms_production_retur_id) REFERENCES dbo.dt_ms_production_retur (ms_production_retur_id) NOT FOR REPLICATION
GO

ALTER TABLE dbo.dt_ms_production_retur_detail
  NOCHECK CONSTRAINT FK_dt_ms_production_retur_detail_dt_ms_production_retur
GO