CREATE TABLE IF NOT EXISTS app_settings (
  setting_key TEXT PRIMARY KEY,
  setting_value TEXT NOT NULL,
  updated_by INTEGER,
  updated_at TEXT NOT NULL DEFAULT (datetime('now')),
  FOREIGN KEY(updated_by) REFERENCES users(id) ON DELETE SET NULL
);

INSERT OR IGNORE INTO app_settings(setting_key,setting_value) VALUES
('association_name','Association'),
('association_address',''),
('association_postal_code',''),
('association_city',''),
('association_phone',''),
('association_email',''),
('association_siret',''),
('association_rna',''),
('adoption_fee_sterilized','220'),
('adoption_fee_unsterilized','200'),
('quarantine_days','15'),
('backup_retention','10');
