Add migration and schema for accounts
Add account name availability endpoint
This commit is contained in:
parent
e6e4472b94
commit
6e039524a4
10 changed files with 107 additions and 43 deletions
11
priv/repo/migrations/20210622142112_add_accounts_table.exs
Normal file
11
priv/repo/migrations/20210622142112_add_accounts_table.exs
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue