Skip to content

Instantly share code, notes, and snippets.

@djirdehh

djirdehh/users.ts

Created May 3, 2020
Embed
What would you like to do?
Seed data to populate users for the TinyHouse application as part of the Postgres + TypeORM lesson.
const users: User[] = [
{
id: "5d378db94e84753160e08b55",
token: "token_************",
name: "James J.",
avatar:
"https://res.cloudinary.com/tiny-house/image/upload/w_1000,ar_1:1,c_fill,g_auto/v1560648533/mock/users/user-profile-1_mawp12.jpg",
contact: "james@tinyhouse.com",
walletId: "acct_************",
income: 723796,
bookings: [],
listings: [
"5d378db94e84753160e08b31",
"5d378db94e84753160e08b4b",
"5d378db94e84753160e08b4c",
],
},
{
id: "5d378db94e84753160e08b56",
token: "token_************",
name: "Elizabeth A.",
avatar:
"https://res.cloudinary.com/tiny-house/image/upload/w_1000,ar_1:1,c_fill,g_auto/v1560649052/mock/users/user-profile-2_arwtdy.jpg",
contact: "elizabeth@tinyhouse.com",
walletId: "acct_************",
income: 256144,
bookings: [],
listings: [
"5d378db94e84753160e08b37",
"5d378db94e84753160e08b38",
"5d378db94e84753160e08b3a",
"5d378db94e84753160e08b3b",
"5d378db94e84753160e08b3d",
"5d378db94e84753160e08b41",
"5d378db94e84753160e08b43",
"5d378db94e84753160e08b4a",
"5d378db94e84753160e08b50",
"5d378db94e84753160e08b51",
"5d378db94e84753160e08b53",
"5d378db94e84753160e08b54",
],
},
{
id: "5d378db94e84753160e08b57",
token: "token_************",
name: "Andrew D.",
avatar:
"https://res.cloudinary.com/tiny-house/image/upload/w_1000,ar_1:1,c_fill,g_auto/v1560649280/mock/users/user-profile-3_omxctk.jpg",
contact: "andrew@tinyhouse.com",
walletId: "acct_************",
income: 272359,
bookings: [],
listings: [
"5d378db94e84753160e08b30",
"5d378db94e84753160e08b32",
"5d378db94e84753160e08b34",
"5d378db94e84753160e08b35",
"5d378db94e84753160e08b36",
"5d378db94e84753160e08b3c",
"5d378db94e84753160e08b3e",
"5d378db94e84753160e08b47",
"5d378db94e84753160e08b48",
"5d378db94e84753160e08b4d",
],
},
{
id: "5d378db94e84753160e08b58",
token: "token_************",
name: "Danielle C.",
avatar:
"https://res.cloudinary.com/tiny-house/image/upload/w_1000,ar_1:1,c_fill,g_auto/v1560650165/mock/users/user-profile-4_wxi6om.jpg",
contact: "danielle@tinyhouse.com",
walletId: "acct_************",
income: 465043,
bookings: [],
listings: [
"5d378db94e84753160e08b3f",
"5d378db94e84753160e08b40",
"5d378db94e84753160e08b44",
],
},
{
id: "5d378db94e84753160e08b59",
token: "token_************",
name: "Sarah K.",
avatar:
"https://res.cloudinary.com/tiny-house/image/upload/w_1000,ar_1:1,c_fill,g_auto/v1560650436/mock/users/user-profile-5_tm8hhl.jpg",
contact: "sarah@tinyhouse.com",
walletId: "acct_************",
income: 104347,
bookings: [],
listings: [
"5d378db94e84753160e08b33",
"5d378db94e84753160e08b39",
"5d378db94e84753160e08b42",
"5d378db94e84753160e08b45",
"5d378db94e84753160e08b46",
"5d378db94e84753160e08b49",
"5d378db94e84753160e08b4e",
"5d378db94e84753160e08b4f",
"5d378db94e84753160e08b52",
],
},
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.