logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: 66f536ecbadd70fae4b1cc3d8c10792ced221ae0
parent: e32dbfc9a5477830dba7bf3e99621161e4454a29
Author: Roger Braun <roger@rogerbraun.net>
Date:   Mon, 20 Mar 2017 21:28:31 +0100

Add user schema.

Diffstat:

Alib/pleroma/user.ex13+++++++++++++
Apriv/repo/migrations/20170320193800_create_user.exs16++++++++++++++++
2 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex @@ -0,0 +1,13 @@ +defmodule Pleroma.User do + use Ecto.Schema + + schema "users" do + field :bio, :string + field :email, :string + field :name, :string + field :nickname, :string + field :password_hash, :string + + timestamps() + end +end diff --git a/priv/repo/migrations/20170320193800_create_user.exs b/priv/repo/migrations/20170320193800_create_user.exs @@ -0,0 +1,16 @@ +defmodule Pleroma.Repo.Migrations.CreatePleroma.User do + use Ecto.Migration + + def change do + create table(:users) do + add :email, :string + add :password_hash, :string + add :name, :string + add :nickname, :string + add :bio, :string + + timestamps() + end + + end +end