Commit Graph

21 Commits

Author SHA1 Message Date
Brian Cao
8732d056dd
Dev (#1702)
* Initial Typescript models.

* Re-add realtime data

* get distinct sessions for session metrics

* Add queries for new schema.

* Fix Typo.

* Add some api/team endpoints.

* Fix destructure error.

* Fix getWebsites call.

* Ignore typescript build errors.

* Fix enum issue.

* add clickhouse route to deleteWebsite

* Fix Website auth.

* Updated lint-staged config.

* Add permission checks.

* Add user role api.

* Fix error when updating website.

* Fix isAdmin check.  Fix Schema.

* Initial conversion to react-basics.

* Remove user/team transfer from website update.

* delete website in relational query

* Fix login secure token creation.

* Add event type to event.

* Allow user to be added to team with role.

* Updated login form.

* Add Role to TeamUser.

* Add database migration.

* Refactored permissions check. Updated redis lib.

* Feat/um 114 roles and permissions (#1683)

* Auth checkpoint.

* Merge branch 'dev' into feat/um-114-roles-and-permissions

* Add 02 migration.

* Added lib/types.

* Updated schema.

* Updated roles and permissions logic.

* Implement react-basics styles. Fix queries.

* Update website details layout.

* Add 01 migration.

* Fix admin create.

* Update react-basics.

Co-authored-by: Francis Cao <franciscao@gmail.com>
Co-authored-by: Mike Cao <mike@mikecao.com>
Co-authored-by: Mike Cao <moocao@gmail.com>
2022-12-12 19:45:38 -08:00
Brian Cao
17041efaae use uuid 2022-10-31 23:42:37 -07:00
Brian Cao
ebf439c598
fix auth, add pg extension (#1596) 2022-10-25 10:27:43 -07:00
Brian Cao
ba31f48f1a
Feat/um 49 query builder api (#1573)
* add uuid to event. add indexes

* eventdata api

* add event data

* remove test data

* update list
2022-10-21 21:33:23 -07:00
Brian Cao
9147415761 add index to uuid 2022-10-12 12:20:20 -07:00
Brian Cao
adb0a06006 add uuid to account 2022-09-30 22:27:47 -07:00
Brian Cao
d53b4a8895 roll back bigint. add loading 2022-08-30 00:03:22 -07:00
Brian Cao
c875096aa7 remove event_old drop 2022-08-23 14:26:44 -07:00
Mike Cao
549ef0295f Remove EXISTS causing migration failure. 2022-08-23 01:00:01 -07:00
Brian Cao
3003371752 remove cascading delete 2022-08-17 17:35:52 -07:00
Brian Cao
d3f3e610a6 big int 2022-08-16 21:03:02 -07:00
Brian Cao
8c504ff923 align index names if error 2022-08-11 10:07:26 -07:00
Brian Cao
7b0d6af147 refactor table drop 2022-08-01 12:22:17 -07:00
Brian Cao
8f934c7e6c checkpoint 2022-07-29 22:30:09 -07:00
Brian Cao
3e2c098c05 create mysql migration 2022-07-27 23:16:16 -07:00
Brian Cao
6fbd566b29 add prisma migration 2022-07-27 17:13:53 -07:00
Brian Cao
b415892b7d restart migration. refresh schema 2022-07-27 12:03:12 -07:00
Brian Cao
689091212e update migration 2022-07-26 00:33:52 -07:00
Brian Cao
79ae5b0571 add migration prisma 4 2022-07-25 23:52:59 -07:00
Mike Cao
eda40d2336 Updated migration process. 2022-06-27 22:09:47 -07:00
Mike Cao
3122bab419 Refactor migrations. 2022-06-19 00:07:01 -07:00