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 (~) | 1657 |
| Created | 10/31/2017 00:20:31 |
| Last Modified | 10/31/2017 00:20:31 |
Columns
| Key | Name | Data Type | Length | Precision | Scale | Not Null | Identity | Rule | Default | Computed | Persisted | Description |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ms_supplier_customer_id | int | 4 | 10 | 0 | True |
1 - 1 | False |
False |
||||
| id_type | int | 4 | 10 | 0 | False |
False |
False |
|||||
| id_nomor | varchar | 20 | 0 | 0 | False |
False |
False |
|||||
| supplier_customer_code | varchar | 50 | 0 | 0 | False |
False |
False |
|||||
| supplier_customer_name | varchar | 255 | 0 | 0 | False |
False |
False |
|||||
| supplier_customer_address | varchar | 255 | 0 | 0 | False |
False |
False |
|||||
| supplier_customer_country | varchar | 2 | 0 | 0 | False |
False |
False |
|||||
| is_affilete | bit | 1 | 1 | 0 | False |
False |
False |
|||||
| api_type_id | int | 4 | 10 | 0 | False |
False |
False |
|||||
| api_no | varchar | 20 | 0 | 0 | False |
False |
False |
|||||
| skep_no | varchar | 50 | 0 | 0 | False |
False |
False |
|||||
| skep_date | date | 3 | 10 | 0 | 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_supplier_customer_enum_ms_api_type1 | api_type_id | |
| FK_dt_ms_supplier_customer_enum_ms_id_type | id_type |
SQL Script
CREATE TABLE dbo.dt_ms_supplier_customer (
ms_supplier_customer_id int IDENTITY,
id_type int NULL,
id_nomor varchar(20) NULL,
supplier_customer_code varchar(50) NULL,
supplier_customer_name varchar(255) NULL,
supplier_customer_address varchar(255) NULL,
supplier_customer_country varchar(2) NULL,
is_affilete bit NULL,
api_type_id int NULL,
api_no varchar(20) NULL,
skep_no varchar(50) NULL,
skep_date date NULL,
create_date datetime NULL,
create_by int NULL,
modify_date datetime NULL,
modify_by int NULL,
CONSTRAINT PK_dt_ms_supplier_customer PRIMARY KEY CLUSTERED (ms_supplier_customer_id),
CONSTRAINT IX_dt_ms_supplier_customer UNIQUE (supplier_customer_code)
)
ON [PRIMARY]
GO
ALTER TABLE dbo.dt_ms_supplier_customer WITH NOCHECK
ADD CONSTRAINT FK_dt_ms_supplier_customer_enum_ms_api_type1 FOREIGN KEY (api_type_id) REFERENCES dbo.enum_ms_api_type (api_type_id) NOT FOR REPLICATION
GO
ALTER TABLE dbo.dt_ms_supplier_customer
NOCHECK CONSTRAINT FK_dt_ms_supplier_customer_enum_ms_api_type1
GO
ALTER TABLE dbo.dt_ms_supplier_customer WITH NOCHECK
ADD CONSTRAINT FK_dt_ms_supplier_customer_enum_ms_id_type FOREIGN KEY (id_type) REFERENCES dbo.enum_ms_id_type (id_type) NOT FOR REPLICATION
GO
ALTER TABLE dbo.dt_ms_supplier_customer
NOCHECK CONSTRAINT FK_dt_ms_supplier_customer_enum_ms_id_type
GO
ms_supplier_customer_id int IDENTITY,
id_type int NULL,
id_nomor varchar(20) NULL,
supplier_customer_code varchar(50) NULL,
supplier_customer_name varchar(255) NULL,
supplier_customer_address varchar(255) NULL,
supplier_customer_country varchar(2) NULL,
is_affilete bit NULL,
api_type_id int NULL,
api_no varchar(20) NULL,
skep_no varchar(50) NULL,
skep_date date NULL,
create_date datetime NULL,
create_by int NULL,
modify_date datetime NULL,
modify_by int NULL,
CONSTRAINT PK_dt_ms_supplier_customer PRIMARY KEY CLUSTERED (ms_supplier_customer_id),
CONSTRAINT IX_dt_ms_supplier_customer UNIQUE (supplier_customer_code)
)
ON [PRIMARY]
GO
ALTER TABLE dbo.dt_ms_supplier_customer WITH NOCHECK
ADD CONSTRAINT FK_dt_ms_supplier_customer_enum_ms_api_type1 FOREIGN KEY (api_type_id) REFERENCES dbo.enum_ms_api_type (api_type_id) NOT FOR REPLICATION
GO
ALTER TABLE dbo.dt_ms_supplier_customer
NOCHECK CONSTRAINT FK_dt_ms_supplier_customer_enum_ms_api_type1
GO
ALTER TABLE dbo.dt_ms_supplier_customer WITH NOCHECK
ADD CONSTRAINT FK_dt_ms_supplier_customer_enum_ms_id_type FOREIGN KEY (id_type) REFERENCES dbo.enum_ms_id_type (id_type) NOT FOR REPLICATION
GO
ALTER TABLE dbo.dt_ms_supplier_customer
NOCHECK CONSTRAINT FK_dt_ms_supplier_customer_enum_ms_id_type
GO
Depends On
2Used By
33- dbo.vw_ms_header_bc_in
- dbo.vw_ms_header_bc_out
- dbo.vw_ms_manual_invoce
- dbo.vw_ms_memo_header
- dbo.vw_ms_molts_grn
- dbo.vw_ms_molts_invoce
- dbo.vw_ms_supplier_customer
- dbo.vw_ms_supplier_customer_for_grn
- dbo.vw_ms_supplier_customer_for_molts
- dbo.MG_MS_BC_IN_ADD
- dbo.MG_MS_BC_IN_EDIT
- dbo.MG_MS_BC_IN_IMPORT_FROM_CEISA
- dbo.MG_MS_BC_IN_IMPORT_FROM_GRN
- dbo.MG_MS_BC_IN_IMPORT_FROM_INVOICE
- dbo.MG_MS_BC_IN_IMPORT_FROM_MOLTS
- dbo.MG_MS_BC_OUT_EDIT
- dbo.MG_MS_BC_OUT_IMPORT_FROM_MEMO
- dbo.MG_MS_FIND_SUPPLIER
- dbo.MG_MS_ITEM_FINAL_AVG_CREATE
- dbo.MG_MS_ITEM_FINAL_AVG_CREATE_BACKUP
- dbo.MG_MS_MANUAL_INVOICE_FILE_PROSSES
- dbo.MG_MS_MANUAL_INVOICE_MAP_SUPPLIER_AUTO
- dbo.MG_MS_MOLTS_FILE_PROSSES
- dbo.MG_MS_MOLTS_GRN_MAP_SUPPLIER_AUTO
- dbo.MG_MS_MOLTS_INVOICE_MAP_SUPPLIER_AUTO
- dbo.MG_MS_SUPPLIER_CUSTOMER_ADD
- dbo.MG_MS_SUPPLIER_CUSTOMER_EDIT
- dbo.MS_MS_ITEM_FINAL_AVG_REPORT_ALL
- dbo.MS_MS_ITEM_FINAL_AVG_REPORT_ALL_BACKUP
- dbo.gab_rpt_incoming_wh_mesin
- dbo.gab_rpt_outgoing_wh_mesin
- dbo.vw_ms_supplier_customer_for_manual_grn
- dbo.vw_ms_supplier_customer_for_manual_invoice