Skip to content

Commit

Permalink
feat: sync colors and effects (#5)
Browse files Browse the repository at this point in the history
## Motivation

As discussed at
"basementdevs/twitch-better-profile#60", all
the related colors or effects would be synced in new UDT (User Defined
Types). Either `settings_v1` than `settings_by_username_v1` got updated
with the new fields.

```cql
/** New types */
CREATE TYPE twitch.color_option (
    name text,
    slug text,
    translation_key text,
    hex text,
);

/** New types */
CREATE TYPE twitch.effect_option (
    name text,
    slug text,
    translation_key text,
    class: text
    hex text,
);

CREATE TABLE twitch.settings_v1 (
    user_id int,
    is_developer boolean,
    locale text,
    color: frozen<color_option>,
    effect: frozen<effect_option>,
    occupation frozen<settingoptions>,
    pronouns frozen<settingoptions>,
    timezone text,
    updated_at timestamp,
    username text,
    PRIMARY KEY (user_id)
) 
```
  • Loading branch information
DanielHe4rt authored Aug 21, 2024
1 parent 14ccead commit e2f5267
Show file tree
Hide file tree
Showing 3 changed files with 280 additions and 132 deletions.
Loading

0 comments on commit e2f5267

Please sign in to comment.