Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE TABLE [dbo].[ContractChangeSerieLog](
- [Id] [int] IDENTITY(1,1) NOT NULL,
- [CreatedDate] [datetime] NOT NULL,
- [UserName] [varchar](50) NOT NULL,
- [Tipo] [int] NOT NULL, -- 1 cambio de serie a otra serie 2 - cambio de un cliente especifico
- [ClientId] [int] NULL, -- NULL SI ES TIPO 1
- [ContractId] [int] NULL, -- NULL SI ES TIPO 1
- [SerieIdOrigin] [int] NULL, -- NULL SI ES TIPO 2
- [SerieIdDestination] [int] NOT NULL,
- [SucursalId] [int] NULL
- CONSTRAINT [PK_ContractChangeSerieLog] PRIMARY KEY CLUSTERED
- (
- [Id] 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
- CREATE TABLE [dbo].[ContractChangeSerieDetailLog](
- [Id] [int] IDENTITY(1,1) NOT NULL,
- [ContractChangeSerieLogId] [int] NOT NULL,
- [ContractId] [int] NOT NULL,
- [SerieIdOrigin] [int] NOT NULL
- CONSTRAINT [PK_ContractChangeSerieDetailLog] PRIMARY KEY CLUSTERED
- (
- [Id] 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement