10 lines
651 B
TypeScript
10 lines
651 B
TypeScript
import type { InferSelectModel } from "drizzle-orm";
|
|
import { usersInCredentials, bilibiliMetadata, latestVideoSnapshot, songs, videoSnapshot, producer } from "./main/schema";
|
|
|
|
export type UserType = InferSelectModel<typeof usersInCredentials>;
|
|
export type SensitiveUserFields = "password" | "unqId";
|
|
export type BilibiliMetadataType = InferSelectModel<typeof bilibiliMetadata>;
|
|
export type VideoSnapshotType = InferSelectModel<typeof videoSnapshot>;
|
|
export type LatestVideoSnapshotType = InferSelectModel<typeof latestVideoSnapshot>;
|
|
export type SongType = InferSelectModel<typeof songs>;
|
|
export type ProducerType = InferSelectModel<typeof producer>; |