データベースルールを新規作成し、生データの取り扱いやユーザー・データベースの作成に関するルールを明記。作業ログをdiary.mdに追記。

This commit is contained in:
president
2025-12-19 16:50:34 +09:00
parent 89caf3438a
commit 456ceb0580

13
database.rules Normal file
View File

@@ -0,0 +1,13 @@
# データベースルール
生データrawは絶対編集しない必要なら別カラムに正規化結果
人間が触るのは transactionsだけ
分離は owner_type を1カラムで固定company/personal/pending
“削除”じゃなく “取り消しフラグ” (後で監査・巻き戻しが効く)
# 作ったもの
CREATE USER account_user WITH PASSWORD 'account_Hideyukey-1234';
CREATE DATABASE accounting_db OWNER account_user ENCODING 'UTF8';
\q