Guest User

Untitled

a guest
Jun 18th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. CREATE TABLE [dbo].[sponsors]
  2. (
  3. [InstId] [bigint] NOT NULL,
  4. [EncryptedData] [varbinary](44) NOT NULL,
  5. [HashedData] [varbinary](22) NOT NULL,
  6. [JobId] [bigint] NOT NULL,
  7. CONSTRAINT [PK_sponsors] PRIMARY KEY CLUSTERED
  8. (
  9. [InstId] ASC
  10. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  11. ) ON [PRIMARY]
  12.  
  13. GO
  14.  
  15. SET ANSI_PADDING OFF
  16. GO
  17.  
  18. ALTER TABLE [dbo].[sponsors] WITH CHECK ADD CONSTRAINT [FK_sponsors_jobs] FOREIGN KEY([JobId])
  19. REFERENCES [dbo].[jobs] ([Id])
  20. GO
  21.  
  22. ALTER TABLE [dbo].[sponsors] CHECK CONSTRAINT [FK_sponsors_jobs]
  23. GO
  24.  
  25. ALTER TABLE [dbo].[sponsors] WITH CHECK ADD CONSTRAINT [FK_sponsors_titles] FOREIGN KEY([TId])
  26. REFERENCES [dbo].[titles] ([TId])
  27. GO
  28.  
  29. ALTER TABLE [dbo].[sponsors] CHECK CONSTRAINT [FK_sponsors_titles]
  30. GO
  31.  
  32. CREATE TABLE [dbo].[sponsors]
  33. (
  34. [InstId] [bigint] NOT NULL,
  35. [EncryptedData] [varbinary](44) NOT NULL,
  36. [HashedData] [varbinary](22) NOT NULL,
  37. [JobId] [bigint] NOT NULL,
  38. [TId] [int] NOT NULL,
  39. CONSTRAINT [PK_sponsors] PRIMARY KEY CLUSTERED
  40. (
  41. [InstId] ASC
  42. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF,
  43. IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON,
  44. ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
  45.  
  46. CONSTRAINT [FK_sponsors_jobs] FOREIGN KEY([JobId])
  47. REFERENCES [dbo].[jobs] ([Id]),
  48.  
  49. CONSTRAINT [FK_sponsors_titles] FOREIGN KEY([TId])
  50. REFERENCES [dbo].[titles] ([TId])
  51. ) ON [PRIMARY]
  52.  
  53. CREATE TABLE [dbo].[sponsors]
  54. (
  55. [InstId] [bigint] NOT NULL
  56. CONSTRAINT [PK_sponsors] PRIMARY KEY CLUSTERED,
  57. [EncryptedData] varbinary NOT NULL,
  58. [HashedData] varbinary NOT NULL,
  59. [JobId] [bigint] NOT NULL
  60. CONSTRAINT [FK_sponsors_jobs] FOREIGN KEY REFERENCES [dbo].[jobs] ([Id]),
  61. [TId] int NOT NULL
  62. CONSTRAINT [FK_sponsors_titles] FOREIGN KEY REFERENCES [dbo].[titles] ([TId])
  63. ) ON [PRIMARY]
Add Comment
Please, Sign In to add comment