Update user

This commit is contained in:
Mirai Kumiko 2025-06-18 23:35:25 +02:00
parent 74514f02a1
commit a30b0718d8
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278

View file

@ -4,7 +4,6 @@ defmodule Nulla.Models.User do
import Ecto.Query
alias Nulla.Repo
alias Nulla.Models.User
alias Nulla.Models.Actor
alias Nulla.Models.Session
@primary_key {:id, :integer, autogenerate: false}
@ -14,7 +13,6 @@ defmodule Nulla.Models.User do
field :privateKeyPem, :string
field :last_active_at, :utc_datetime
belongs_to :actor, Actor, define_field: false, foreign_key: :id, type: :integer
has_many :user_sessions, Session
timestamps(type: :utc_datetime)