forked from WoofyIO/dcbadge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDrop and Create Table.sql
More file actions
37 lines (30 loc) · 920 Bytes
/
Drop and Create Table.sql
File metadata and controls
37 lines (30 loc) · 920 Bytes
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
USE [dcbadge]
GO
/****** Object: Table [dbo].[Codes] Script Date: 4/26/2017 10:45:16 AM ******/
DROP TABLE [dbo].[Codes]
GO
/****** Object: Table [dbo].[Codes] Script Date: 4/26/2017 10:45:17 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Codes](
[ID] [int] IDENTITY(1,1) NOT NULL,
[requestcode] [varchar](255) UNIQUE NOT NULL,
[maxqantity] [int] DEFAULT '2' NOT NULL,
[codeused] [bit] DEFAULT 0 NOT NULL,
[collected] [bit] DEFAULT 0 NOT NULL,
[qantity] [int] DEFAULT 0 NOT NULL,
[price] [float] DEFAULT 0 NOT NULL,
[email] [varchar](255) NULL,
[custcode] [varchar](255) NULL,
[paycode] [varchar](255) NULL,
[datepayed] [datetime] NULL,
[datecollect] [datetime] NULL,
[qrcode] [varchar](255) NULL,
PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO