chore: refactoring of Repo.get/get! usages

This commit is contained in:
2026-05-01 17:20:08 +02:00
parent f6425de51d
commit 3505355980
23 changed files with 192 additions and 89 deletions

View File

@@ -7,6 +7,23 @@ defmodule BDS.Scripts.Script do
@primary_key {:id, :string, autogenerate: false}
@foreign_key_type :string
@type t :: %__MODULE__{
id: String.t(),
project_id: String.t(),
slug: String.t() | nil,
title: String.t() | nil,
kind: :macro | :utility | :transform | nil,
entrypoint: String.t() | nil,
enabled: boolean() | nil,
version: integer() | nil,
file_path: String.t() | nil,
status: :draft | :published | nil,
content: String.t() | nil,
created_at: integer() | nil,
updated_at: integer() | nil,
project: term()
}
schema "scripts" do
field :slug, :string
field :title, :string