Commit graph

126 commits

Author SHA1 Message Date
c1f8b8f0e2 Track DB migrations 2022-07-30 00:26:35 -07:00
40a2391942 Add config file 2022-07-29 23:14:42 -07:00
99192bccdd Clean up db models 2022-07-29 22:52:00 -07:00
f6f24a557e Fix compile errors on latest zig 2022-07-27 20:13:25 -07:00
ae9a062caf Track invite uses and handle properly 2022-07-26 23:03:27 -07:00
76f2b818ab Allow registration with invite 2022-07-26 22:30:52 -07:00
01ef4427f5 Generate invite codes 2022-07-26 22:02:09 -07:00
a020199773 Refactor api calls 2022-07-25 19:07:05 -07:00
47e157e31b Use threadlocal prng 2022-07-24 17:18:25 -07:00
a7b1361048 Verify incoming tokens 2022-07-24 17:04:44 -07:00
b05abf95ac Move models to db subdir 2022-07-24 02:01:17 -07:00
7fc83b6e56 Issue tokens on login 2022-07-23 22:19:32 -07:00
3e91d66565 Remove storage policy from sql lib 2022-07-23 21:29:38 -07:00
ada0eb71f5 Add sql support for blobs 2022-07-23 21:14:46 -07:00
fb5a7f9f30 Add README.md 2022-07-22 21:33:39 -07:00
ab61efc44a Add id and created_at fields to db models 2022-07-22 00:08:01 -07:00
dc8877eef3 Refactoring controllers 2022-07-21 23:53:05 -07:00
ee0db68c5e Split users into actors and localusers 2022-07-21 21:19:08 -07:00
a4f6fca675 Support optional types in sql 2022-07-21 21:18:43 -07:00
cc44bbf12b Better error messages 2022-07-21 21:18:20 -07:00
e6217d543d Basic password auth 2022-07-20 22:26:13 -07:00
7b1e4030b0 Refactoring 2022-07-20 20:42:16 -07:00
73662d675a Fully implement api free() 2022-07-19 02:22:19 -07:00
718da7b408 Basic reacts 2022-07-19 00:07:01 -07:00
07019cb090 Track creation time for notes 2022-07-18 00:37:10 -07:00
b1190ddea8 Add DateTime 2022-07-18 00:03:29 -07:00
f28f71c978 Remove dead code 2022-07-17 23:13:20 -07:00
11d4a52b2d Collect author id from user context 2022-07-17 23:11:42 -07:00
87903ca17b Create user contexts 2022-07-17 16:21:03 -07:00
52003f5e4f Remove unused helpers 2022-07-16 12:31:36 -07:00
b80eba6fcf Check user handle is available 2022-07-16 12:30:47 -07:00
1d6f7bfa08 Allow querying by other fields 2022-07-16 12:00:33 -07:00
90d2dcd4c1 Remove references to memdb 2022-07-16 11:44:46 -07:00
74fb8d2574 Use sql api for users 2022-07-16 11:41:09 -07:00
40e7037444 Type-introspected insert 2022-07-15 22:29:08 -07:00
c9c5958849 Use type introspection in db wrapper 2022-07-15 21:33:01 -07:00
b82600e8cd Store notes in SQLite 2022-07-15 00:27:27 -07:00
9faf2a3c9b gitignore sqlite dbs 2022-07-14 17:58:46 -07:00
163811caa0 Basic sqlite adapter 2022-07-14 17:58:08 -07:00
caa599986d Reorganize controllers 2022-07-13 00:57:21 -07:00
2092bbdffa Check users for duplicates 2022-07-12 22:35:39 -07:00
f5548c0243 Create Table abstraction 2022-07-12 22:08:18 -07:00
16d093b4f7 Add users 2022-07-12 21:56:47 -07:00
b3c9c3b600 Move body parsing to new fn 2022-07-12 21:41:26 -07:00
d27c38330b Better error messages 2022-07-12 21:31:52 -07:00
44cb7017b2 Make api return full note 2022-07-12 21:28:54 -07:00
3f3e9e039e Add JSON stringification for UUIDs 2022-07-12 21:23:50 -07:00
ad6f1454a6 Use Uuids for id 2022-07-12 21:16:33 -07:00
20af2c82c8 Use u128 as backing field for Uuid 2022-07-12 20:55:19 -07:00
ccf79febe4 Basic api server 2022-07-12 20:40:48 -07:00