Revention CustAcct


USE [Revention]
GO

/****** Object:  Table [dbo].[CustAcct]    Script Date: 08/20/2018 09:34:33 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[CustAcct](
	[CustAcctKey] [int] IDENTITY(1,1) NOT NULL,
	[AcctNum] [int] NOT NULL,
	[CustKey] [int] NOT NULL,
	[AcctBalance] [money] NOT NULL,
	[AcctStatus] [nvarchar](10) NULL,
	[CreditLimit] [money] NOT NULL,
	[AvailableCredit] [money] NOT NULL,
	[DateOpened] [datetime] NULL,
	[OpenedByEmplKey] [int] NOT NULL,
PRIMARY KEY CLUSTERED 
(
	[CustAcctKey] 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

ALTER TABLE [dbo].[CustAcct] ADD  DEFAULT ((0)) FOR [AcctNum]
GO

ALTER TABLE [dbo].[CustAcct] ADD  DEFAULT ((0)) FOR [CustKey]
GO

ALTER TABLE [dbo].[CustAcct] ADD  DEFAULT ((0)) FOR [AcctBalance]
GO

ALTER TABLE [dbo].[CustAcct] ADD  DEFAULT ((0)) FOR [CreditLimit]
GO

ALTER TABLE [dbo].[CustAcct] ADD  DEFAULT ((0)) FOR [AvailableCredit]
GO

ALTER TABLE [dbo].[CustAcct] ADD  DEFAULT ((0)) FOR [OpenedByEmplKey]
GO