This repository has been archived by the owner on Apr 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
/
CreateSSB.sql
79 lines (77 loc) · 1.81 KB
/
CreateSSB.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
USE [SuperSecureBank]
GO
/****** Object: Table [dbo].[Users] Script Date: 04/15/2009 13:39:23 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Users](
[UserID] [int] NULL,
[Username] [varchar](50) NULL,
[Password] [varchar](50) NULL,
[email] [varchar](255) NULL,
[Type] [varchar](50) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: Table [dbo].[Session] Script Date: 04/15/2009 13:39:23 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Session](
[SessionID] [int] NULL,
[UserID] [int] NULL
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[Accounts] Script Date: 04/15/2009 13:39:23 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Accounts](
[AccountID] [int] IDENTITY(1,1) NOT NULL,
[UserID] [int] NULL,
[Type] [varchar](50) NULL,
[Class] [varchar](50) NULL,
[Amount] [int] NULL,
[Activity] [varchar](50) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
INSERT INTO [dbo].[Accounts]
VALUES (1, 'Checking', 'Gold', 150, 'Active');
GO
INSERT INTO [dbo].[Accounts]
VALUES (1, 'Savings', 'Silver', 200, 'Active');
GO
INSERT INTO [dbo].[Accounts]
VALUES (1, 'SmallLoan', 'Gold', -5000, 'Active');
GO
INSERT INTO [dbo].[Accounts]
VALUES (1, 'Checking', 'Gold', 1500, 'Active');
GO
INSERT INTO [dbo].[Accounts]
VALUES (1, 'Checking', 'Silver', 200, 'Active');
GO
INSERT INTO [dbo].[Accounts]
VALUES (1, 'Checking', 'Silver', 500, 'Active');
GO
INSERT INTO [dbo].[Accounts]
VALUES (1, 'Credit', 'Silver', -4, 'Active');
GO
INSERT INTO [dbo].[Users]
VALUES (1, 'joe' ,'letmein' ,'[email protected]' ,'Admin');
GO
INSERT INTO [dbo].[Users]
VALUES (2, 'jim' ,'123456' ,'[email protected]' ,'User');
GO
INSERT INTO [dbo].[Users]
VALUES (3, 'jack' ,'1234' ,'[email protected]' ,'User');
GO