/*
 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: 29/12/2023 01:50: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  NOT NULL PRIMARY KEY IDENTITY(100000,1),
  [FBILLNO] varchar(80) COLLATE Chinese_PRC_CI_AS  NULL,
  [FMATERIALID] int  NULL,
  [FENTRYID] int  NULL,
  [FSEQ] int  NULL,
  [FNUMBER] nvarchar(80) COLLATE Chinese_PRC_CI_AS  NULL,
  [FNAME] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [FSPECIFICATION] nvarchar(510) COLLATE Chinese_PRC_CI_AS  NULL,
  [SHELFLIFE] varchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [StandardLot] varchar(200) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [SAFESTOCK] decimal(23,2)  NULL,
  [FSTOREUNITID] int  NULL,
  [FSTOREUNITNAME] nvarchar(80) COLLATE Chinese_PRC_CI_AS  NULL,
  [SAFESTOCKCOUNT] decimal(23,2)  NULL,
  [FPACKUNITCONVT] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FLOTYIELD] int  NULL,
  [FPACKUNITCONVERRATIO] int  NULL,
  [FPACKUNITID] int  NULL,
  [FPACKUNITNAME] nvarchar(80) COLLATE Chinese_PRC_CI_AS  NULL,
  [M01] decimal(23,2)  NULL,
  [S01] decimal(23,2)  NULL,
  [S02] decimal(23,2)  NULL,
  [S03] decimal(23,2)  NULL,
  [InProductionQty] decimal(23,2)  NULL,
  [InStockQty] decimal(23,2)  NULL,
  [TotalStockQty] decimal(23,2)  NULL,
  [OrderLotQty] decimal(23,2)  NULL,
  [FirmLotQty] decimal(23,2)  NULL,
  [FFirmQty] decimal(23,2)  NULL,
  [FRECORDDAY] int null,
  [FRECORDMONTH] int null,
  [FRECORDYEAR] int null
)
GO

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

