Add snowflake IDs

This commit is contained in:
Mirai Kumiko 2025-06-13 15:10:17 +02:00
parent 4a890a39f4
commit 44b484de21
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278
24 changed files with 116 additions and 14 deletions

View file

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