USE [BeProd_REIMAN]
GO

/****** Object:  Table [dbo].[Mov_OrdensProducaoSimples_Movimentos]    Script Date: 15/10/2024 10:19:48 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[Mov_OrdensProducaoSimples_Movimentos](
	[intId] [int] IDENTITY(1,1) NOT NULL,
	[strNumDoc] [nvarchar](50) NOT NULL,
	[strHashCab] [nvarchar](50) NOT NULL,
	[strHashLin] [nvarchar](50) NOT NULL,
	[strCodArtigo] [nvarchar](50) NOT NULL,
	[fltQtd] [decimal](18, 0) NOT NULL,
	[strTipoUn] [nvarchar](50) NOT NULL,
	[strSSCC] [nvarchar](50) NOT NULL,
	[intSinal] [int] NOT NULL,
	[dtmDataRegisto] [datetime] NOT NULL,
	[strUserRegisto] [nvarchar](50) NOT NULL,
	[bitEliminado] [bit] NOT NULL,
	[dtmDataEliminado] [datetime] NULL,
	[strUserEliminado] [nvarchar](50) NULL,
 CONSTRAINT [PK_Mov_OrdensProducaoSimples_Movimentos] PRIMARY KEY CLUSTERED 
(
	[intId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO

ALTER TABLE [dbo].[Mov_OrdensProducaoSimples_Movimentos] ADD  CONSTRAINT [DF_Mov_OrdensProducaoSimples_Movimentos_bitEliminado]  DEFAULT ((0)) FOR [bitEliminado]
GO


