﻿USE [OPMS_Online]
GO

/****** Object:  Table [dbo].[OTB_FNC_AccountingJournal]    Script Date: 2018/2/10 下午 03:08:56 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[OTB_FNC_AccountingJournal](
	[AccountingBookID] [varchar](20) NOT NULL,
	[AccountingID] [varchar](11) NOT NULL,
	[AccountingDate] [datetime] NOT NULL,
	[AccountingOrder] [int] NOT NULL,
	[AccountingSubID] [varchar](50) NOT NULL,
	[AccountingSubName] [varchar](50) NOT NULL,
	[Debit] [varchar](50) NULL,
	[Credit] [varchar](50) NULL,
	[ProjectNumber] [varchar](50) NULL,
	[ProjectCName] [varchar](50) NULL,
	[Memo] [varchar](500) NULL,
	[ClosedAccounting] [char](1) NULL,
	[CreateDate] [datetime] NULL,
	[CreateUser] [varchar](50) NULL,
	[ModifyDate] [datetime] NULL,
	[ModifyUser] [varchar](50) NULL,	
 CONSTRAINT [PK_OTB_FNC_AccountingJournal] PRIMARY KEY CLUSTERED 
(
	[AccountingBookID] ASC,
	[AccountingID] ASC,
	[AccountingSubID] ASC,
	[AccountingOrder] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO


