summaryrefslogtreecommitdiff
path: root/src/seed.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/seed.h')
-rw-r--r--src/seed.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/seed.h b/src/seed.h
new file mode 100644
index 0000000..826391b
--- /dev/null
+++ b/src/seed.h
@@ -0,0 +1,12 @@
+#ifndef BOKF_SEED_H
+#define BOKF_SEED_H
+
+#include <sqlite3.h>
+#include <stdint.h>
+
+/* Seeds a fresh org inside an existing transaction: chart of accounts,
+ moms report rules and the current fiscal year. Returns 0 on success. */
+int seed_org(sqlite3 *db, int64_t org_id, const char *framework,
+ int fy_start_month, int64_t *out_fy_id, char **err);
+
+#endif