Add migration and schema for accounts

Add account name availability endpoint
This commit is contained in:
Pim Kunis 2021-06-22 23:04:37 +02:00
parent e6e4472b94
commit 6e039524a4
10 changed files with 107 additions and 43 deletions

View file

@ -0,0 +1,11 @@
defmodule MatrixServer.Repo.Migrations.AddAccountsTable do
use Ecto.Migration
def change do
create table(:accounts, primary_key: false) do
add :localpart, :string, primary_key: true, null: false
add :password_hash, :string, size: 60, null: false
timestamps(updated_at: false)
end
end
end