USE [BeProd_MKA]
GO

/****** Object:  Table [dbo].[Tbl_EncomendasLight]    Script Date: 11/09/2018 10:48:33 ******/
DROP TABLE [dbo].[Tbl_EncomendasLight]
GO

/****** Object:  Table [dbo].[Tbl_EncomendasLight]    Script Date: 11/09/2018 10:48:33 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[Tbl_EncomendasLight](
	[intId] [int] IDENTITY(1,1) NOT NULL,
	[strSeccao] [varchar](50) NOT NULL,
	[strExercicio] [varchar](50) NOT NULL,
	[strTipoDoc] [varchar](50) NOT NULL,
	[intNumero] [int] NOT NULL,
	[strNumExterno] [nvarchar](50) NULL,
	[fltDescontoTotal] [decimal](16, 4) NOT NULL,
	[strCodPag] [nvarchar](50) NOT NULL,
	[strCodMoeda] [nvarchar](50) NOT NULL,
	[strObs] [varchar](150) NOT NULL,
	[strCodCliente] [varchar](50) NOT NULL,
	[strNomeCliente] [varchar](50) NOT NULL,
	[dtmDataAlteracao] [datetime] NULL,
	[dtmDataRegisto] [datetime] NOT NULL,
	[dtmDataInicioProd] [datetime] NULL,
	[dtmDataConclusao] [datetime] NULL,
	[dtmDataExpedicao] [datetime] NULL,
	[dtmDataEntrega] [datetime] NULL,
	[bitAnulado] [bit] NOT NULL,
	[bitConcluida] [bit] NOT NULL,
	[strNomePDF] [varchar](150) NULL
) ON [PRIMARY]
GO

