2024
-
09:45AM
Docs
Decided to make a quick repo for the microbot community. It was a great refresh for operating inside my own repo without having to deal with a monorepo? Without that extra layer, it does make things so much easier to build and quickly deploy.
-
11:40AM
Election
The day of the year is finally here and I can not wait until the day is over. There is going to be a nice release of all that political gunk stuck in everyones mind, its post election nut clarity.
-
01:07PM
Supabase
Table structure is currently:
user_cards
user_cards_public
user_profiles
With the
user_cards_public
being a materialized view, so we will not have to worry too much about it.Trigger structure, there are two areas that we need to process for the triggers, the
auth
schema and thepublic
schema. Under theauth
schema, we only have theon_auth_new_card_created
trigger active but that will be disabled in this next query. The bigger concern will be under the public schema, where we have 4 more triggers!handle_user_card_update
- under tableuser_cards
with functionhandle_user_card_update
handle_user_cards_update
- under tableuser_cards
with functionmoddatetime
handle_user_profile_update
- under tableuser_profiles
with functionhandle_profile_update
handle_user_profiles_update
- under tableuser_profiles
with functionmoddatetime
Finally we have the database functions, which are split into into the two schemas again,
auth
andpublic
. Under thepublic
, we have:before_insert_hcaptcha_verfication
with 0 arguements, a return type of trigger and security of invoker.create_user_profile
- with_username
as text, a return type of void and a security definer.