Revert "feat(user): add ecto migration for user"
This reverts commit 9613fcebde
.
This commit is contained in:
parent
9613fcebde
commit
59e55ff848
@ -1,3 +0,0 @@
|
||||
defmodule Ketbin.Api.User do
|
||||
|
||||
end
|
@ -1,18 +0,0 @@
|
||||
defmodule Ketbin.Schema do
|
||||
@moduledoc """
|
||||
Ketbin keeps the contexts that define your schemas
|
||||
"""
|
||||
end
|
||||
|
||||
|
||||
defmodule Ketbin.Crud do
|
||||
@moduledoc """
|
||||
Ketbin keeps the contexts that define your CRUD functions
|
||||
"""
|
||||
end
|
||||
|
||||
defmodule Ketbin.Api do
|
||||
@moduledoc """
|
||||
Ketbin keeps the contexts that define your business logic.
|
||||
"""
|
||||
end
|
@ -1,3 +0,0 @@
|
||||
defmodule Ketbin.Crud.User do
|
||||
|
||||
end
|
@ -1,17 +0,0 @@
|
||||
defmodule Ketbin.Schema.User do
|
||||
use Ecto.Schema
|
||||
import Ecto.Changeset
|
||||
|
||||
schema "users" do
|
||||
field :firebase_id, :string
|
||||
|
||||
timestamps()
|
||||
end
|
||||
|
||||
@doc false
|
||||
def changeset(user, attrs) do
|
||||
user
|
||||
|> cast(attrs, [:firebase_id])
|
||||
|> validate_required([:firebase_id])
|
||||
end
|
||||
end
|
@ -1,12 +0,0 @@
|
||||
defmodule Ketbin.Repo.Migrations.CreateUsers do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:users) do
|
||||
add :firebase_id, :string
|
||||
|
||||
timestamps()
|
||||
end
|
||||
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user