2021-07-23 22:13:12 +00:00
|
|
|
alias MatrixServer.{Repo, Room, Event, Account, Device}
|
|
|
|
|
2021-08-16 17:30:47 +00:00
|
|
|
timestamp = fn n -> DateTime.from_unix!(n, :microsecond) end
|
|
|
|
|
2021-07-23 22:13:12 +00:00
|
|
|
Repo.insert!(%Account{
|
|
|
|
localpart: "chuck",
|
|
|
|
password_hash: Bcrypt.hash_pwd_salt("sneed")
|
|
|
|
})
|
|
|
|
|
|
|
|
Repo.insert(%Device{
|
|
|
|
device_id: "android",
|
|
|
|
display_name: "My Android",
|
|
|
|
localpart: "chuck"
|
|
|
|
})
|