CREATE TABLE [dbo].[kredit] (
[customerid] [uniqueidentifier] NOT NULL ,
[date_plat] [datetime] NOT NULL ,
[date_ins] [datetime] NULL ,
[summa] [money] NOT NULL ,
[kvit_number] [int] NOT NULL ,
[kvit_seria] [varchar] (15) COLLATE Cyrillic_General_CI_AS NOT NULL ,
[obosnovanie] [varchar] (40) COLLATE Cyrillic_General_CI_AS NULL ,
[proveden] [nvarchar] (3) COLLATE Cyrillic_General_CI_AS NULL ,
[year_pl] [varchar] (9) COLLATE Cyrillic_General_CI_AS NULL ,
[n] [int] IDENTITY (1, 1) NOT NULL
) ON [PRIMARY]
GO
CREATE UNIQUE
INDEX [IX_kredit_2] ON kredit ([kvit_seria], [kvit_number])
WITH
FILLFACTOR = 80
,DROP_EXISTING
ON [PRIMARY] |