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_id | bigint | 8 | 19 | 0 | True |
1 - 1 | False |
False |
||||
| ms_production_retur_h_status_id | bigint | 8 | 19 | 0 | False |
False |
False |
|||||
| retur_no | varchar | 50 | 0 | 0 | False |
False |
False |
|||||
| retur_date | date | 3 | 10 | 0 | False |
False |
False |
|||||
| receive_no | varchar | 255 | 0 | 0 | False |
False |
False |
|||||
| receive_date | date | 3 | 10 | 0 | False |
False |
False |
|||||
| receive_ndpbm_usd | 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 |
|||||
| ms_date_business_id | int | 4 | 10 | 0 | False |
False |
False |
|||||
| is_move_business_date | bit | 1 | 1 | 0 | False |
False |
False |
|||||
| ms_date_business_id_from | int | 4 | 10 | 0 | False |
False |
False |
|||||
| cancel_ms_cost_final_avg_id | bigint | 8 | 19 | 0 | False |
False |
False |
|||||
| approve_ms_cost_final_avg_id | bigint | 8 | 19 | 0 | False |
False |
False |
Indexes
Foreign Keys
| Name | Columns | Description |
|---|---|---|
| FK_dt_ms_production_retur_dt_ms_production_retur_h_status | ms_production_retur_h_status_id |
SQL Script
CREATE TABLE dbo.dt_ms_production_retur (
ms_production_retur_id bigint IDENTITY,
ms_production_retur_h_status_id bigint NULL,
retur_no varchar(50) NULL,
retur_date date NULL,
receive_no varchar(255) NULL,
receive_date date NULL,
receive_ndpbm_usd decimal(38, 4) NULL,
create_date datetime NULL,
create_by int NULL,
modify_date datetime NULL,
modify_by int NULL,
ms_date_business_id int NULL,
is_move_business_date bit NULL,
ms_date_business_id_from int NULL,
cancel_ms_cost_final_avg_id bigint NULL,
approve_ms_cost_final_avg_id bigint NULL,
CONSTRAINT PK_dt_ms_production_retur PRIMARY KEY CLUSTERED (ms_production_retur_id)
)
ON [PRIMARY]
GO
ALTER TABLE dbo.dt_ms_production_retur WITH NOCHECK
ADD CONSTRAINT FK_dt_ms_production_retur_dt_ms_production_retur_h_status FOREIGN KEY (ms_production_retur_h_status_id) REFERENCES dbo.dt_ms_production_retur_h_status (ms_production_retur_h_status_id) NOT FOR REPLICATION
GO
ALTER TABLE dbo.dt_ms_production_retur
NOCHECK CONSTRAINT FK_dt_ms_production_retur_dt_ms_production_retur_h_status
GO
ms_production_retur_id bigint IDENTITY,
ms_production_retur_h_status_id bigint NULL,
retur_no varchar(50) NULL,
retur_date date NULL,
receive_no varchar(255) NULL,
receive_date date NULL,
receive_ndpbm_usd decimal(38, 4) NULL,
create_date datetime NULL,
create_by int NULL,
modify_date datetime NULL,
modify_by int NULL,
ms_date_business_id int NULL,
is_move_business_date bit NULL,
ms_date_business_id_from int NULL,
cancel_ms_cost_final_avg_id bigint NULL,
approve_ms_cost_final_avg_id bigint NULL,
CONSTRAINT PK_dt_ms_production_retur PRIMARY KEY CLUSTERED (ms_production_retur_id)
)
ON [PRIMARY]
GO
ALTER TABLE dbo.dt_ms_production_retur WITH NOCHECK
ADD CONSTRAINT FK_dt_ms_production_retur_dt_ms_production_retur_h_status FOREIGN KEY (ms_production_retur_h_status_id) REFERENCES dbo.dt_ms_production_retur_h_status (ms_production_retur_h_status_id) NOT FOR REPLICATION
GO
ALTER TABLE dbo.dt_ms_production_retur
NOCHECK CONSTRAINT FK_dt_ms_production_retur_dt_ms_production_retur_h_status
GO
Depends On
1Used By
19- dbo.dt_ms_item_in_detail
- dbo.dt_ms_production_retur_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
- dbo.vw_ms_production_retur_header_count_detail
- dbo.MG_MS_ITEM_FINAL_AVG_CANCEL
- dbo.MG_MS_ITEM_FINAL_AVG_CREATE
- dbo.MG_MS_ITEM_FINAL_AVG_CREATE_BACKUP
- dbo.MG_MS_PRODUCTION_RETUR_HEADER_ADD
- dbo.MG_MS_PRODUCTION_RETUR_HEADER_APPROVE
- dbo.MG_MS_PRODUCTION_RETUR_HEADER_CANCEL
- dbo.MG_MS_PRODUCTION_RETUR_HEADER_EDIT
- dbo.MS_MS_ITEM_FINAL_AVG_REPORT_ALL
- dbo.MS_MS_ITEM_FINAL_AVG_REPORT_ALL_BACKUP