Revert "feat(user): add ecto migration for user"

This reverts commit 9613fcebde.
This commit is contained in:
Amogh Lele 2021-08-09 14:38:20 +05:30
parent 9613fcebde
commit 59e55ff848
No known key found for this signature in database
GPG Key ID: ED5C54FBBB920E51
5 changed files with 0 additions and 53 deletions

View File

@ -1,3 +0,0 @@
defmodule Ketbin.Api.User do
end

View File

@ -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

View File

@ -1,3 +0,0 @@
defmodule Ketbin.Crud.User do
end

View File

@ -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

View File

@ -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