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 (~) | 9677172 |
| Created | 10/11/2017 14:47:00 |
| Last Modified | 7/22/2020 22:08:59 |
Columns
| Key | Name | Data Type | Length | Precision | Scale | Not Null | Identity | Rule | Default | Computed | Persisted | Description |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ms_item_h_price_id | bigint | 8 | 19 | 0 | True |
1 - 1 | False |
False |
||||
| ms_cost_final_avg_id | bigint | 8 | 19 | 0 | False |
False |
False |
|||||
| ms_item_id | bigint | 8 | 19 | 0 | False |
False |
False |
|||||
| end_qty | decimal | 17 | 38 | 5 | False |
False |
False |
|||||
| end_price | decimal | 17 | 38 | 5 | False |
False |
False |
|||||
| end_price_usd | decimal | 17 | 38 | 5 | 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 |
|||||
| carline_avg_qty | decimal | 9 | 18 | 8 | False |
False |
False |
|||||
| carline_max_qty | decimal | 9 | 18 | 8 | False |
False |
False |
|||||
| carline_min_qty | decimal | 9 | 18 | 8 | False |
False |
False |
|||||
| carline_safty | decimal | 9 | 18 | 8 | False |
False |
False |
Indexes
Foreign Keys
| Name | Columns | Description |
|---|---|---|
| FK_dt_ms_item_list_price_dt_ms_cost_final_avg | ms_cost_final_avg_id |
SQL Script
CREATE TABLE dbo.dt_ms_item_list_price (
ms_item_h_price_id bigint IDENTITY,
ms_cost_final_avg_id bigint NULL,
ms_item_id bigint NULL,
end_qty decimal(38, 5) NULL,
end_price decimal(38, 5) NULL,
end_price_usd decimal(38, 5) NULL,
create_date datetime NULL,
create_by int NULL,
modify_date datetime NULL,
modify_by int NULL,
carline_avg_qty decimal(18, 8) NULL,
carline_max_qty decimal(18, 8) NULL,
carline_min_qty decimal(18, 8) NULL,
carline_safty decimal(18, 8) NULL,
CONSTRAINT PK_dt_ms_item_h_price PRIMARY KEY CLUSTERED (ms_item_h_price_id)
)
ON [PRIMARY]
GO
CREATE INDEX ix_dt_ms_item_list_price_0001
ON dbo.dt_ms_item_list_price (ms_cost_final_avg_id, ms_item_id)
ON [PRIMARY]
GO
CREATE INDEX ix_dt_ms_item_list_price_2020_07_0001
ON dbo.dt_ms_item_list_price (ms_cost_final_avg_id)
INCLUDE (ms_item_id, end_qty, end_price, end_price_usd, create_by, modify_by)
ON [PRIMARY]
GO
ALTER TABLE dbo.dt_ms_item_list_price WITH NOCHECK
ADD CONSTRAINT FK_dt_ms_item_list_price_dt_ms_cost_final_avg FOREIGN KEY (ms_cost_final_avg_id) REFERENCES dbo.dt_ms_cost_final_avg (ms_cost_final_avg_id) NOT FOR REPLICATION
GO
ALTER TABLE dbo.dt_ms_item_list_price
NOCHECK CONSTRAINT FK_dt_ms_item_list_price_dt_ms_cost_final_avg
GO
ms_item_h_price_id bigint IDENTITY,
ms_cost_final_avg_id bigint NULL,
ms_item_id bigint NULL,
end_qty decimal(38, 5) NULL,
end_price decimal(38, 5) NULL,
end_price_usd decimal(38, 5) NULL,
create_date datetime NULL,
create_by int NULL,
modify_date datetime NULL,
modify_by int NULL,
carline_avg_qty decimal(18, 8) NULL,
carline_max_qty decimal(18, 8) NULL,
carline_min_qty decimal(18, 8) NULL,
carline_safty decimal(18, 8) NULL,
CONSTRAINT PK_dt_ms_item_h_price PRIMARY KEY CLUSTERED (ms_item_h_price_id)
)
ON [PRIMARY]
GO
CREATE INDEX ix_dt_ms_item_list_price_0001
ON dbo.dt_ms_item_list_price (ms_cost_final_avg_id, ms_item_id)
ON [PRIMARY]
GO
CREATE INDEX ix_dt_ms_item_list_price_2020_07_0001
ON dbo.dt_ms_item_list_price (ms_cost_final_avg_id)
INCLUDE (ms_item_id, end_qty, end_price, end_price_usd, create_by, modify_by)
ON [PRIMARY]
GO
ALTER TABLE dbo.dt_ms_item_list_price WITH NOCHECK
ADD CONSTRAINT FK_dt_ms_item_list_price_dt_ms_cost_final_avg FOREIGN KEY (ms_cost_final_avg_id) REFERENCES dbo.dt_ms_cost_final_avg (ms_cost_final_avg_id) NOT FOR REPLICATION
GO
ALTER TABLE dbo.dt_ms_item_list_price
NOCHECK CONSTRAINT FK_dt_ms_item_list_price_dt_ms_cost_final_avg
GO
Depends On
1Used By
12- dbo.dt_ms_item
- dbo.vw_ms_item_beginning_balance
- dbo.vw_ms_item_final_cost
- dbo.vw_ms_production_in_detail
- dbo.MG_MS_ITEM_ADD
- dbo.MG_MS_ITEM_DELETE
- dbo.MG_MS_ITEM_EDIT
- dbo.MG_MS_ITEM_FINAL_AVG_CREATE
- dbo.MG_MS_ITEM_FINAL_AVG_CREATE_BACKUP
- dbo.MG_UPLOAD_PART_LIST_OLD
- dbo.vw_fn_ms_mutasi_mesin
- dbo.vw_fn_ms_mutasi_mesin_test