Add snowflake IDs
This commit is contained in:
parent
4a890a39f4
commit
44b484de21
24 changed files with 116 additions and 14 deletions
|
@ -2,7 +2,8 @@ defmodule Nulla.Repo.Migrations.CreateUsers do
|
|||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:users) do
|
||||
create table(:users, primary_key: false) do
|
||||
add :id, :bigint, primary_key: true
|
||||
add :username, :string, null: false, unique: true
|
||||
add :email, :string
|
||||
add :password, :string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue