USE [BeProd_REIMAN]
GO

/****** Object:  Table [dbo].[Mov_OrdensProducaoSimples_NumSerie]    Script Date: 14/10/2024 11:02:13 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[Mov_OrdensProducaoSimples_NumSerie](
	[intId] [int] IDENTITY(1,1) NOT NULL,
	[strNumDoc] [nvarchar](50) NOT NULL,
	[strHashCab] [nvarchar](50) NOT NULL,
	[strHashLin] [nvarchar](50) NOT NULL,
	[strSSCC] [nvarchar](50) NOT NULL,
	[strNumSerie] [nvarchar](250) 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_NumSerie] 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_NumSerie] ADD  CONSTRAINT [DF_Mov_OrdensProducaoSimples_NumSerie_bitEliminado]  DEFAULT ((0)) FOR [bitEliminado]
GO


