-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDB Script.txt
31 lines (25 loc) · 847 Bytes
/
DB Script.txt
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
USE [WebAPI_Students]
GO
/****** Object: Table [dbo].[students] Script Date: 4/27/2023 3:17:41 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[students](
[StudentId] [int] IDENTITY(1,1) NOT NULL,
[StudentName] [varchar](50) NULL,
[Email] [varchar](50) NULL,
[Gender] [varchar](10) NULL,
[Active] [bit] NOT NULL,
[CreatedOn] [datetime] NULL,
[CreatedBy] [varchar](50) NULL,
[LastModifiedOn] [datetime] NULL,
[LastModifiedBy] [varchar](50) NULL,
CONSTRAINT [PK_students] PRIMARY KEY CLUSTERED
(
[StudentId] 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].[students] ADD CONSTRAINT [DF_students_Active] DEFAULT ((1)) FOR [Active]
GO