-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcapstone-seed.sql
78 lines (67 loc) · 2.06 KB
/
capstone-seed.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
-- testuser has the password "password"
\c capstone_2_db
INSERT INTO users (username, password, first_name, last_name, email, phone_number)
VALUES ('testuser',
'$2b$12$AZH7virni5jlTTiGgEg4zu3lSvAw68qVEfSIOjJ3RqtbJbdW/Oi5q',
'Test',
'User',
'testuser@testuser.com',
1234567890);
INSERT INTO households (name, street_address, city, state, zip, photo, notes)
VALUES ('Test House',
'123 Test rd',
'TestCity',
'TestState',
'12345',
null,
'Test Notes');
INSERT INTO "sellerExpertise" ("hasExpertise", "isLandlord", "isRealEstateLicensee", notes)
VALUES (TRUE,
FALSE,
FALSE,
'Test Notes');
INSERT INTO "ownershipOccupancy" ("mostRecentOccupation", "isOccupiedBySeller", "sellerOccupancyHistory", "hasHadPets", "purchaseDate", notes)
VALUES (NOW(),
FALSE,
NULL,
FALSE,
NOW(),
NULL
);
INSERT INTO "roleTypes"("roleTypeName")
VALUES ('The Owner'),
('The Executor'),
('The Administrator'),
('The Trustee'),
('An Individual Holding Power of Attorney');
INSERT INTO associations (fees, "initiationFees", "communityMaintenance", notes)
VALUES (NULL,
NULL,
NULL,
'Test Notes');
INSERT INTO "associationTypes"("associationTypeName")
VALUES ('Condomunium'),
('H.O.A.'),
('Cooperative'),
('N/A');
INSERT INTO "frequencyTypes"("frequencyTypeName")
VALUES ('Monthly'),
('Quarterly'),
('Yearly'),
('N/A');
INSERT INTO roof ("installationDate", "invoicePhoto", "hasBeenReplaced", "hadExistingMaterialRemoved", "hasPreexistingLeaks", "hasRainwaterProblems", notes)
VALUES (NOW(),
NULL,
TRUE,
FALSE,
FALSE,
FALSE,
'Test Notes');
INSERT INTO basements ("hasSumpPump", "pumpCount", "hasBeenUsed", "hasWaterDamage", "hasRepairs", "hasDownspoutConnection", notes)
VALUES (TRUE,
1,
TRUE,
FALSE,
FALSE,
True,
'Test Notes');