Review strat for documenso API

This commit is contained in:
Norore 2024-06-28 23:51:47 +02:00
parent ad6200d071
commit 80137468bf
7 changed files with 9 additions and 39 deletions

View file

@ -1,7 +0,0 @@
import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
connect() {
this.element.textContent = "Hello World!"
}
}

View file

@ -1,4 +1,3 @@
class Letter < ApplicationRecord
has_one_attached :document
has_many :signatories
end

View file

@ -1,12 +0,0 @@
class CreateLetters < ActiveRecord::Migration[7.1]
def change
create_table :letters do |t|
t.string :title
t.string :author
t.string :email
t.boolean :private_email
t.timestamps
end
end
end

View file

@ -1,12 +0,0 @@
class CreateSignatories < ActiveRecord::Migration[7.1]
def change
create_table :signatories do |t|
t.string :name
t.string :profession
t.string :email
t.boolean :private_email
t.timestamps
end
end
end

8
db/schema.rb generated
View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.1].define(version: 2024_06_08_194425) do
ActiveRecord::Schema[7.1].define(version: 2024_06_16_175655) do
create_table "active_storage_attachments", force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false
@ -41,18 +41,16 @@ ActiveRecord::Schema[7.1].define(version: 2024_06_08_194425) do
create_table "letters", force: :cascade do |t|
t.string "title"
t.string "author"
t.string "email"
t.boolean "private_email"
t.string "documentid"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "signatories", force: :cascade do |t|
t.string "name"
t.string "profession"
t.string "email"
t.boolean "private_email"
t.string "profession"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

View file

@ -2,6 +2,8 @@
one:
title: MyString
documentid: MyString
two:
title: MyString
documentid: MyString

View file

@ -2,10 +2,12 @@
one:
name: MyString
profession: MyString
email: MyString
private_email: false
profession: MyString
two:
name: MyString
profession: MyString
email: MyString
private_email: false
profession: MyString