USE [MogoData355] GO /****** 对象: Table [dbo].[User_Withdraw_Order] 脚本日期: 07/05/2013 13:21:34 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[User_Withdraw_Order]( [ID] [int] IDENTITY(10000,1) NOT NULL, [UID] [uniqueidentifier] NULL, [CreateDate] [smalldatetime] NULL, [Amount] [money] NULL, [Status] [tinyint] NULL, [Tax] [money] NULL, [RealityAmount] [money] NULL, CONSTRAINT [PK_User_Withdraw_Order] PRIMARY KEY CLUSTERED ( [ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] ------------------------------------------------------------ USE [MogoData355] GO /****** 对象: Table [dbo].[User_Withdraw_Detail] 脚本日期: 07/05/2013 13:22:16 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[User_Withdraw_Detail]( [ID] [int] NOT NULL, [UID] [uniqueidentifier] NULL, [WOID] [int] NOT NULL, [WFID] [int] NULL, [PaymentType] [tinyint] NULL, [Rate] [tinyint] NULL, [Amount] [money] NULL, [TaxRate] [tinyint] NULL, [Tax] [money] NULL, [AfterTaxAmount] AS ([Amount]-[Tax]), [RealityAmount] [money] NULL, [Status] [tinyint] NULL, [CreateDate] [smalldatetime] NULL, [LastModifyDate] [smalldatetime] NULL, [Note] [varchar](5000) NULL, CONSTRAINT [PK_User_Withdraw_Detail] PRIMARY KEY CLUSTERED ( [ID] ASC, [WOID] 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 ALTER TABLE [dbo].[User_Withdraw_Detail] WITH CHECK ADD CONSTRAINT [FK_User_Withdraw_Detail_User] FOREIGN KEY([UID]) REFERENCES [dbo].[User] ([ID]) GO ALTER TABLE [dbo].[User_Withdraw_Detail] CHECK CONSTRAINT [FK_User_Withdraw_Detail_User] ---------------------------------------------------------------------- USE [MogoData355] GO /****** 对象: Table [dbo].[User_Withdraw_Review] 脚本日期: 07/05/2013 13:22:43 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[User_Withdraw_Review]( [ID] [uniqueidentifier] NOT NULL, [UWID] [int] NULL, [UWDID] [int] NULL, [Date] [datetime] NULL, [WID] [uniqueidentifier] NULL, [Status] [int] NULL, [Invoice] [nvarchar](500) NULL, [Note] [nvarchar](4000) NULL, CONSTRAINT [PK_User_Withdraw_Review] PRIMARY KEY CLUSTERED ( [ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY]