1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| USE [GIFTCARD]
GO
/****** Object: Table [dbo].[Promotion] Script Date: 03/12/2012 14:42:53 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Promotion](
[SeqNrPromo] [int] IDENTITY(1,1) NOT NULL,
[Active] [bit] NOT NULL CONSTRAINT [DF__Promotion__Activ__239E4DCF] DEFAULT ((1)),
[Promo_Nr] [int] NOT NULL,
[Date_Start] [datetime] NOT NULL,
[Date_End] [datetime] NOT NULL,
[Req_Typ] [varchar](1) COLLATE Latin1_General_CI_AS NOT NULL,
[Required] [decimal](9, 2) NOT NULL,
[Adv_Typ] [varchar](8) COLLATE Latin1_General_CI_AS NOT NULL,
[Advantage] [decimal](9, 2) NOT NULL,
[Triggers] [varchar](16) COLLATE Latin1_General_CI_AS NOT NULL CONSTRAINT [DF__Promotion__Trigg__24927208] DEFAULT (''),
[Voucher] [varchar](13) COLLATE Latin1_General_CI_AS NOT NULL CONSTRAINT [DF__Promotion__Vouch__25869641] DEFAULT (''),
[Acct_Typ] [varchar](1) COLLATE Latin1_General_CI_AS NOT NULL CONSTRAINT [DF__Promotion__Acct___267ABA7A] DEFAULT ('D'),
[Grp1_Typ] [varchar](1) COLLATE Latin1_General_CI_AS NOT NULL,
[Group_1] [varchar](128) COLLATE Latin1_General_CI_AS NOT NULL,
[Grp2_Typ] [varchar](1) COLLATE Latin1_General_CI_AS NOT NULL CONSTRAINT [DF__Promotion__Grp2___276EDEB3] DEFAULT (''),
[Group_2] [varchar](128) COLLATE Latin1_General_CI_AS NOT NULL CONSTRAINT [DF__Promotion__Group__286302EC] DEFAULT (''),
[DscrBi] [varchar](18) COLLATE Latin1_General_CI_AS NOT NULL CONSTRAINT [DF__Promotion__DscrB__29572725] DEFAULT (''),
[DscrFr] [varchar](18) COLLATE Latin1_General_CI_AS NOT NULL CONSTRAINT [DF__Promotion__DscrF__2A4B4B5E] DEFAULT (''),
[DscrNl] [varchar](18) COLLATE Latin1_General_CI_AS NOT NULL CONSTRAINT [DF__Promotion__DscrN__2B3F6F97] DEFAULT (''),
[HH_Start] [varchar](4) COLLATE Latin1_General_CI_AS NOT NULL CONSTRAINT [DF__Promotion__HH_St__2C3393D0] DEFAULT ('0000'),
[HH_End] [varchar](4) COLLATE Latin1_General_CI_AS NOT NULL CONSTRAINT [DF__Promotion__HH_En__2D27B809] DEFAULT ('0000'),
[Stores] [varchar](128) COLLATE Latin1_General_CI_AS NOT NULL CONSTRAINT [DF__Promotion__Store__2E1BDC42] DEFAULT ('ALL'),
[Comment] [varchar](256) COLLATE Latin1_General_CI_AS NOT NULL CONSTRAINT [DF__Promotion__Comme__2F10007B] DEFAULT (''),
[VoucherTextNl] [varchar](512) COLLATE Latin1_General_CI_AS NULL,
[VoucherTextFr] [varchar](512) COLLATE Latin1_General_CI_AS NULL,
CONSTRAINT [UQ__Promotion__22AA2996] UNIQUE NONCLUSTERED
(
[Promo_Nr] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF |
Partager