-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpirates_DB.sql
38 lines (35 loc) · 1.73 KB
/
pirates_DB.sql
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
USE [pirates]
GO
/****** Object: Table [dbo].[pirates] Script Date: 9/27/2016 5:39:31 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[pirates](
[id] [int] IDENTITY(1,1) NOT NULL,
[name] [varchar](255) NULL,
[rank] [varchar](255) NULL
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[pirates_ships] Script Date: 9/27/2016 5:39:31 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[pirates_ships](
[id] [int] IDENTITY(1,1) NOT NULL,
[ships_id] [int] NULL,
[pirates_id] [int] NULL
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[ships] Script Date: 9/27/2016 5:39:31 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ships](
[id] [int] IDENTITY(1,1) NOT NULL,
[name] [varchar](255) NULL,
[shiptype] [varchar](255) NULL
) ON [PRIMARY]
GO