Advertisement
Economy_Peanut

profile-creation

Oct 21st, 2021
1,132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.60 KB | None | 0 0
  1. Activ8.DataFactory.insert(:profile, user: Activ8.ReadRepo.get(Activ8.User, 2))  
  2.                
  3. [debug] QUERY OK source="users" db=0.5ms queue=0.6ms idle=1138.1ms
  4. SELECT u0."id", u0."id_number", u0."id_type", u0."nationality", u0."first_name", u0."last_name", u0."other_names", u0."msisdn", u0."email", u0."dob", u0."gender", u0."password_hash", u0."status", u0."deleted", u0."confirmed_at", u0."reset_sent_at", u0."created_by_id", u0."inserted_at", u0."updated_at" FROM "users" AS u0 WHERE (u0."id" = $1) [2]
  5. [debug] QUERY OK db=0.3ms idle=1158.2ms
  6. begin []
  7. [debug] QUERY OK db=1.5ms
  8. INSERT INTO "profiles" ("user_id","inserted_at","updated_at") VALUES ($1,$2,$3) RETURNING "id" [2, ~N[2021-10-21 11:48:28], ~N[2021-10-21 11:48:28]]
  9. [debug] QUERY OK db=0.9ms
  10. commit []
  11. %Activ8.Profiles.Profile{
  12.   __meta__: #Ecto.Schema.Metadata<:loaded, "profiles">,
  13.   farm: #Ecto.Association.NotLoaded<association :farm is not loaded>,
  14.   id: 9,
  15.   inserted_at: ~N[2021-10-21 11:48:28],
  16.   organisation: #Ecto.Association.NotLoaded<association :organisation is not loaded>,
  17.   organisation_id: nil,
  18.   profile_services: #Ecto.Association.NotLoaded<association :profile_services is not loaded>,
  19.   roles: #Ecto.Association.NotLoaded<association :roles is not loaded>,
  20.   routes: #Ecto.Association.NotLoaded<association :routes is not loaded>,
  21.   updated_at: ~N[2021-10-21 11:48:28],
  22.   user: %Activ8.User{
  23.     __meta__: #Ecto.Schema.Metadata<:loaded, "users">,
  24.     confirmed_at: nil,
  25.     created_by: #Ecto.Association.NotLoaded<association :created_by is not loaded>,
  26.     created_by_id: nil,
  27.     deleted: false,
  28.     dob: nil,
  29.     email: nil,
  30.     first_name: "Marvin",
  31.     gender: nil,
  32.     id: 2,
  33.     id_number: "33461387",
  34.     id_type: "passport",
  35.     inserted_at: ~N[2021-10-21 10:23:03],
  36.     last_name: "Kweyu",
  37.     msisdn: "+254707127129",
  38.     nationality: nil,
  39.     other_names: nil,
  40.     password: nil,
  41.     password_confirmation: nil,
  42.     password_hash: "$argon2id$v=19$m=131072,t=8,p=4$zXJZR8IFCrW0p4hUHYbEyg$WXRMFPMbSNtvqdBXBRW4Py8PktejEj2nfcnlVSUHU5c",
  43.     reset_sent_at: nil,
  44.     role_ids: nil,
  45.     roles: #Ecto.Association.NotLoaded<association :roles is not loaded>,
  46.     roles_ids: nil,
  47.     sessions: #Ecto.Association.NotLoaded<association :sessions is not loaded>,
  48.     status: "active",
  49.     updated_at: ~N[2021-10-21 10:23:55],
  50.     user_roles: #Ecto.Association.NotLoaded<association :user_roles is not loaded>                                                                                                                                
  51.   },
  52.   user_id: 2                                                                
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement