architex/priv/repo/seeds.exs
Pim Kunis bcc6cbb24b Implement client invite endpoint
Refactor room server to automatically determine auth events
Add documentation in various places
2021-08-25 01:27:03 +02:00

14 lines
314 B
Elixir

alias MatrixServer.{Repo, Room, Event, Account, Device}
timestamp = fn n -> DateTime.from_unix!(n, :microsecond) end
Repo.insert!(%Account{
localpart: "chuck",
password_hash: Bcrypt.hash_pwd_salt("sneed")
})
Repo.insert(%Device{
device_id: "android",
display_name: "My Android",
localpart: "chuck"
})