-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTable.sql
More file actions
29 lines (23 loc) · 738 Bytes
/
Table.sql
File metadata and controls
29 lines (23 loc) · 738 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
USE [AktivasyonUyg]
GO
/****** Object: Table [dbo].[KeyMgmt] Script Date: 31.05.2024 12:44:18 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[KeyMgmt](
[KeyID] [int] IDENTITY(1,1) NOT NULL,
[KeyCode] [varchar](19) NOT NULL,
[MacAddress] [varchar](12) NULL,
[KeyCreateDate] [datetime] NULL,
[UserRegisterDate] [datetime] NULL,
PRIMARY KEY CLUSTERED
(
[KeyID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[KeyMgmt] ADD DEFAULT ((0)) FOR [MacAddress]
GO
ALTER TABLE [dbo].[KeyMgmt] ADD DEFAULT (getdate()) FOR [KeyCreateDate]
GO