Advertisement
daxruiz

Untitled

Apr 28th, 2023
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. CREATE TABLE [dbo].[ContractChangeSerieLog](
  2. [Id] [int] IDENTITY(1,1) NOT NULL,
  3. [CreatedDate] [datetime] NOT NULL,
  4. [UserName] [varchar](50) NOT NULL,
  5. [Tipo] [int] NOT NULL, -- 1 cambio de serie a otra serie 2 - cambio de un cliente especifico
  6. [ClientId] [int] NULL, -- NULL SI ES TIPO 1
  7. [ContractId] [int] NULL, -- NULL SI ES TIPO 1
  8. [SerieIdOrigin] [int] NULL, -- NULL SI ES TIPO 2
  9. [SerieIdDestination] [int] NOT NULL,
  10. [SucursalId] [int] NULL
  11. CONSTRAINT [PK_ContractChangeSerieLog] PRIMARY KEY CLUSTERED
  12. (
  13. [Id] ASC
  14. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  15. ) ON [PRIMARY]
  16. GO
  17.  
  18. CREATE TABLE [dbo].[ContractChangeSerieDetailLog](
  19. [Id] [int] IDENTITY(1,1) NOT NULL,
  20. [ContractChangeSerieLogId] [int] NOT NULL,
  21. [ContractId] [int] NOT NULL,
  22. [SerieIdOrigin] [int] NOT NULL
  23. CONSTRAINT [PK_ContractChangeSerieDetailLog] PRIMARY KEY CLUSTERED
  24. (
  25. [Id] ASC
  26. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  27. ) ON [PRIMARY]
  28. GO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement