/*
 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: 27/12/2023 16:44:40
*/


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

CREATE TABLE [dbo].[T_MATERIAL_INVENTORY_MONTH_RECORD] (
  [FID] int not null PRIMARY KEY IDENTITY(100000,1),
  [FMASTERID] int  NULL,
  [FMATERIALID] int  NOT NULL,
  [FNUMBER] nvarchar(80) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FSTOCKQTY] decimal(23,6) NOT NULL,
  [FLOTYIELD] int not NULL,
  [FPACKUNITCONVERRATIO] int not  NULL,
  [FPACKUNITID] int not NULL,
  [FUSEORGID] int  NOT NULL,
  [RECORDYEAR] int  NOT NULL,
  [RECORDMONTH] int  NOT NULL,
  [RECORDDAY] int  NOT NULL
)
GO

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

