/*
 Navicat Premium Data Transfer

 Source Server         : sql server
 Source Server Type    : SQL Server
 Source Server Version : 15002080
 Source Host           : .:1433
 Source Catalog        : AIS20231110222743
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 15002080
 File Encoding         : 65001

 Date: 30/12/2023 03:59:37
*/


-- ----------------------------
-- Table structure for T_PLAN_PLANPLMRPT
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[T_PLAN_PLANPLMRPT]') AND type IN ('U'))
	DROP TABLE [dbo].[T_PLAN_PLANPLMRPT]
GO

CREATE TABLE [dbo].[T_PLAN_PLANPLMRPT] (
  [FID] int  IDENTITY(100000,1) NOT NULL,
  [FMATERIALID] int DEFAULT 0 NOT NULL,
  [FNUMBER] varchar(80) COLLATE Chinese_PRC_CI_AS  NULL,
  [FNAME] varchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FSPECIFICATION] varchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [SHELFLIFE] varchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [StandardLot] varchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [SAFESTOCK] decimal(23,2) DEFAULT 0 NOT NULL,
  [FSTOREUNITID] int DEFAULT 0 NOT NULL,
  [FSTOREUNITNAME] varchar(80) COLLATE Chinese_PRC_CI_AS  NULL,
  [SAFESTOCKCOUNT] decimal(23,6) DEFAULT 0 NOT NULL,
  [FPACKUNITCONVT] varchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FLOTYIELD] decimal(23,6) DEFAULT 0 NOT NULL,
  [FPACKUNITCONVERRATIO] decimal(23,6) DEFAULT 0 NOT NULL,
  [FPACKUNITID] int DEFAULT 0 NOT NULL,
  [FPACKUNITNAME] varchar(80) COLLATE Chinese_PRC_CI_AS  NULL,
  [M01] decimal(23,6) DEFAULT 0 NOT NULL,
  [S01] decimal(23,6) DEFAULT 0 NOT NULL,
  [S02] decimal(23,6) DEFAULT 0 NOT NULL,
  [S03] decimal(23,6) DEFAULT 0 NOT NULL,
  [InProductionQty] decimal(23,6) DEFAULT 0 NOT NULL,
  [InStockQty] decimal(23,6) DEFAULT 0 NOT NULL,
  [TotalStockQty] decimal(23,6) DEFAULT 0 NOT NULL,
  [OrderLotQty] decimal(23,6) DEFAULT 0 NOT NULL,
  [FirmLotQty] decimal(23,6) DEFAULT 0 NOT NULL,
  [FFirmQty] decimal(23,6) DEFAULT 0 NOT NULL,
  [FRECORDDAY] int DEFAULT 0 NOT NULL,
  [FRECORDMONTH] int DEFAULT 0 NOT NULL,
  [FRECORDYEAR] int DEFAULT 0 NOT NULL,
  [countM] int DEFAULT 0 NOT NULL
)
GO

ALTER TABLE [dbo].[T_PLAN_PLANPLMRPT] SET (LOCK_ESCALATION = TABLE)
GO

