mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-23 11:57:50 -05:00
* Migrations * Arrange admin UI * Load staff from DB * Fix TODO * Can add/remove staff * isTournamentAdmin / isTournamentOrganizer * Show chat to streamer * User titles in the chat * chat name color * Unique constraint * TO Staff E2E tests * Casts on stream page * Streamer test * Fix test
16 lines
336 B
TypeScript
16 lines
336 B
TypeScript
import { sql } from "kysely";
|
|
|
|
export const COMMON_USER_FIELDS = [
|
|
"User.id",
|
|
"User.discordName",
|
|
"User.discordId",
|
|
"User.discordAvatar",
|
|
"User.customUrl",
|
|
] as const;
|
|
|
|
export const userChatNameColor = sql<
|
|
string | null
|
|
>`IIF(COALESCE("User"."patronTier", 0) >= 2, "User"."css" ->> 'chat', null)`.as(
|
|
"chatNameColor",
|
|
);
|