chore: refactoring of Repo.get/get! usages
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user