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
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
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
Depends On
2Used By
16- dbo.dt_ms_item_in_detail
- dbo.vw_business_date_item_in_sum_retur
- dbo.vw_ms_item_in_detail
- dbo.vw_ms_item_in_detail_for_mutasi
- dbo.vw_ms_production_in_out_to_retur_detail
- dbo.vw_ms_production_in_sum_to_retur
- dbo.vw_ms_production_retur_detail
- dbo.vw_ms_production_retur_header_count_detail
- dbo.MG_MS_ITEM_FINAL_AVG_CREATE
- dbo.MG_MS_ITEM_FINAL_AVG_CREATE_BACKUP
- dbo.MG_MS_PRODUCTION_RETUR_DETAIL_ADD
- dbo.MG_MS_PRODUCTION_RETUR_DETAIL_DELETE
- dbo.MG_MS_PRODUCTION_RETUR_DETAIL_EDIT
- dbo.MG_MS_PRODUCTION_RETUR_HEADER_EDIT
- dbo.MS_MS_ITEM_FINAL_AVG_REPORT_ALL
- dbo.MS_MS_ITEM_FINAL_AVG_REPORT_ALL_BACKUP