Created
July 9, 2010 20:25
-
-
Save mariochavez/470010 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE [Codigos] | |
GO | |
CREATE TABLE [dbo].[ClientProgram]( | |
[Id] [int] IDENTITY(1,1) NOT NULL, | |
[ClientId] [int] NOT NULL, | |
[Fraction] [nvarchar](8) NOT NULL, | |
[Rule] [nvarchar](20) NULL, | |
[Amount] [money] NULL, | |
[Charter] [bit] NULL, | |
[Prosec] [nvarchar](50) NULL, | |
[ExpirationDate] [datetime] NULL, | |
[Enable] [bit] NOT NULL, | |
[CreatedBy] [int] NOT NULL, | |
[CreatedOn] [datetime] NOT NULL, | |
[UpdatedBy] [int] NULL, | |
[UpdatedOn] [datetime] NULL, | |
CONSTRAINT [PK_ClientProgram] PRIMARY KEY CLUSTERED | |
( | |
[Id] ASC | |
) | |
) ON [PRIMARY] | |
GO | |
ALTER TABLE [dbo].[ClientProgram] WITH CHECK ADD CONSTRAINT [FK_ClientProgram_Client] FOREIGN KEY([ClientId]) | |
REFERENCES [dbo].[Client] ([Id]) | |
GO | |
ALTER TABLE [dbo].[ClientProgram] CHECK CONSTRAINT [FK_ClientProgram_Client] | |
GO | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment