improve accuracy of timestamps

This commit is contained in:
2025-04-05 03:15:44 +00:00
parent 7096e6abeb
commit da717013de
14 changed files with 87 additions and 42 deletions

View File

@ -24,7 +24,7 @@ defmodule Memex.Notes.Note do
field :user_id, :binary_id
timestamps()
timestamps(type: :utc_datetime_usec)
end
@type t :: %__MODULE__{
@ -34,8 +34,8 @@ defmodule Memex.Notes.Note do
tags_string: String.t() | nil,
visibility: :public | :private | :unlisted,
user_id: User.id(),
inserted_at: NaiveDateTime.t(),
updated_at: NaiveDateTime.t()
inserted_at: DateTime.t(),
updated_at: DateTime.t()
}
@type id :: UUID.t()
@type slug :: String.t()