-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66585cd
commit 53f6cae
Showing
2 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; | ||
|
||
INSERT INTO users ( | ||
id, | ||
email, | ||
last_seen, | ||
first_name, | ||
last_name, | ||
summary, | ||
phone_number, | ||
country_code, | ||
location, | ||
profile_image_url, | ||
profile_image_r2_key, | ||
verification_code, | ||
verification_code_expires_at, | ||
is_email_verified, | ||
verification_attempts, | ||
last_verification_request | ||
) VALUES | ||
( | ||
uuid_generate_v4(), | ||
'[email protected]', | ||
'2024-12-10T19:30:00Z', | ||
'John', | ||
'Doe', | ||
'Software developer with 5 years of experience', | ||
'12345678', | ||
'+506', | ||
'New York, USA', | ||
'test.jpg', | ||
'profiles/john-doe-123.jpg', | ||
'123456', | ||
'2024-12-10T20:30:00Z', | ||
true, | ||
0, | ||
'2024-12-10T19:30:00Z' | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
INSERT INTO apartments ( | ||
id, | ||
owner_id, | ||
name, | ||
description, | ||
price, | ||
warranty_deposit, | ||
coordinates, | ||
location_area, | ||
address, | ||
is_available, | ||
available_from, | ||
available_until | ||
) VALUES ( | ||
uuid_generate_v4(), | ||
(SELECT id FROM users WHERE email = '[email protected]'), | ||
'Modern Loft in Heredia', | ||
'Spacious and bright loft in the heart of San José, perfect for professionals and digital nomads.', | ||
1250.00, | ||
2500.00, | ||
point(-84.0907, 9.9282), | ||
ST_GeomFromText('POLYGON((-84.0920 9.9270, -84.0890 9.9270, -84.0890 9.9290, -84.0920 9.9290, -84.0920 9.9270))', 4326), | ||
'{"street": "Calle 5", "neighborhood": "Barrio Escalante", "city": "San José", "country": "Costa Rica", "postal_code": "10103"}', | ||
true, | ||
NOW() - INTERVAL '1 month', | ||
NOW() + INTERVAL '6 months' | ||
), | ||
( | ||
uuid_generate_v4(), | ||
(SELECT id FROM users WHERE email = '[email protected]'), | ||
'Modern Loft in San Jose', | ||
'Spacious and bright loft in the heart of San José, perfect for professionals and digital nomads', | ||
1250.00, | ||
2500.00, | ||
point(-84.0907, 9.9282), | ||
ST_GeomFromText('POLYGON((-84.0920 9.9270, -84.0890 9.9270, -84.0890 9.9290, -84.0920 9.9290, -84.0920 9.9270))', 4326), | ||
'{"street": "Calle 5", "neighborhood": "Barrio Escalante", "city": "San José", "country": "Costa Rica", "postal_code": "10103"}', | ||
true, | ||
NOW() - INTERVAL '1 month', | ||
NOW() + INTERVAL '6 months' | ||
); | ||
|