From 644cccb6473f5378e5a61e6c38685bfe647386a6 Mon Sep 17 00:00:00 2001 From: Phil Chen <06fahchen@gmail.com> Date: Mon, 1 Jul 2024 09:56:27 +0800 Subject: [PATCH] docs: do format --- lib/typed_structor/plugin.ex | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/typed_structor/plugin.ex b/lib/typed_structor/plugin.ex index 11f7a25..dc21459 100644 --- a/lib/typed_structor/plugin.ex +++ b/lib/typed_structor/plugin.ex @@ -54,7 +54,8 @@ defmodule TypedStructor.Plugin do @type t() :: %MyApp.User{ __meta__: Ecto.Schema.Metadata.t(), age: integer() | nil, - id: integer(), name: String.t(), + id: integer(), + name: String.t(), password: String.t() | nil, posts: [MyApp.Post.t()] | nil } @@ -82,7 +83,8 @@ defmodule TypedStructor.Plugin do related_key: :user_id, on_cast: nil, queryable: MyApp.Post, - on_delete: :nothing, on_replace: :raise, + on_delete: :nothing, + on_replace: :raise, where: [], unique: true, defaults: [],