Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. CREATE TABLE [stc].[BrokerContracts](
  2. [PK] [int] IDENTITY(1,1) NOT NULL,
  3. [FK_DocTemplate] [int] NULL,
  4. [FK_Broker_AlphabetCustomer] [int] NULL,
  5. [DateCreated] [datetime] NULL,
  6. [DateAccepted] [datetime] NULL,
  7. [AcceptingUser] [nvarchar](500) NULL,
  8. [Status] [nvarchar](500) NULL,
  9. CONSTRAINT [PK_BrokerContracts] PRIMARY KEY CLUSTERED
  10. (
  11. [PK] ASC
  12. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  13. ) ON [PRIMARY]
  14.  
  15. GO
  16.  
  17. ALTER TABLE [stc].[BrokerContracts] WITH CHECK ADD CONSTRAINT [FK_BrokerContracts_BrokerAlphabetCustomer] FOREIGN KEY([FK_Broker_AlphabetCustomer])
  18. REFERENCES [stc].[BrokerAlphabetCustomer] ([PK])
  19. GO
  20.  
  21. ALTER TABLE [stc].[BrokerContracts] CHECK CONSTRAINT [FK_BrokerContracts_BrokerAlphabetCustomer]
  22. GO
  23.  
  24. ALTER TABLE [stc].[BrokerContracts] WITH CHECK ADD CONSTRAINT [FK_BrokerContracts_DocTemplate] FOREIGN KEY([FK_DocTemplate])
  25. REFERENCES [stc].[DocTemplate] ([PK])
  26. GO
  27.  
  28. ALTER TABLE [stc].[BrokerContracts] CHECK CONSTRAINT [FK_BrokerContracts_DocTemplate]
  29. GO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement