studiocms
Version:
Astro Native CMS for AstroDB. Built from the ground up by the Astro community.
1,520 lines (1,519 loc) • 47.9 kB
TypeScript
declare const _default: {
tables?: unknown;
};
export default _default;
export declare const tsUsers: import("@astrojs/db/runtime").Table<"StudioCMSUsers", {
id: {
type: "text";
schema: {
readonly primaryKey: true;
};
};
url: {
type: "text";
schema: {
readonly optional: true;
};
};
name: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
email: {
type: "text";
schema: {
readonly unique: true;
readonly optional: true;
};
};
avatar: {
type: "text";
schema: {
readonly optional: true;
readonly default: "https://seccdn.libravatar.org/static/img/mm/80.png";
};
};
username: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
password: {
type: "text";
schema: {
readonly optional: true;
};
};
updatedAt: {
type: "date";
schema: {
default: import("drizzle-orm").SQL<unknown>;
optional: true;
};
};
createdAt: {
type: "date";
schema: {
default: import("drizzle-orm").SQL<unknown>;
optional: true;
};
};
emailVerified: {
type: "boolean";
schema: {
default: false;
};
};
notifications: {
type: "text";
schema: {
readonly optional: true;
};
};
}>;
export declare const tsAPIKeys: import("@astrojs/db/runtime").Table<"StudioCMSAPIKeys", {
id: {
type: "text";
schema: {
readonly primaryKey: true;
};
};
userId: {
type: "text";
schema: {
readonly references: () => {
type: "text";
schema: {
readonly primaryKey: true;
};
};
};
};
key: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
creationDate: {
type: "date";
schema: {
default: import("drizzle-orm").SQL<unknown>;
};
};
description: {
type: "text";
schema: {
readonly optional: true;
};
};
}>;
export declare const tsUserResetTokens: import("@astrojs/db/runtime").Table<"StudioCMSUserResetTokens", {
id: {
type: "text";
schema: {
readonly primaryKey: true;
};
};
userId: {
type: "text";
schema: {
readonly references: () => {
type: "text";
schema: {
readonly primaryKey: true;
};
};
};
};
token: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
}>;
export declare const tsOAuthAccounts: import("@astrojs/db/runtime").Table<"StudioCMSOAuthAccounts", {
provider: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
providerUserId: {
type: "text";
schema: {
readonly primaryKey: true;
};
};
userId: {
type: "text";
schema: {
readonly references: () => {
type: "text";
schema: {
readonly primaryKey: true;
};
};
};
};
}>;
export declare const tsSessionTable: import("@astrojs/db/runtime").Table<"StudioCMSSessionTable", {
id: {
type: "text";
schema: {
readonly primaryKey: true;
};
};
userId: {
type: "text";
schema: {
readonly references: () => {
type: "text";
schema: {
readonly primaryKey: true;
};
};
readonly optional: false;
};
};
expiresAt: {
type: "date";
schema: {
name?: string | undefined;
label?: string | undefined;
optional?: boolean | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: Date | import("drizzle-orm").SQL<any> | undefined;
};
};
}>;
export declare const tsPermissions: import("@astrojs/db/runtime").Table<"StudioCMSPermissions", {
user: {
type: "text";
schema: {
readonly references: () => {
type: "text";
schema: {
readonly primaryKey: true;
};
};
};
};
rank: {
type: "text";
schema: {
readonly enum: ["owner", "admin", "editor", "visitor", "unknown"];
};
};
}>;
export declare const tsPageFolderStructure: import("@astrojs/db/runtime").Table<"StudioCMSPageFolderStructure", {
id: {
type: "text";
schema: {
readonly primaryKey: true;
};
};
name: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
parent: {
type: "text";
schema: {
readonly optional: true;
};
};
}>;
export declare const tsPageData: import("@astrojs/db/runtime").Table<"StudioCMSPageData", {
id: {
type: "text";
schema: {
readonly primaryKey: true;
};
};
package: {
type: "text";
schema: {
readonly default: "studiocms";
};
};
title: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
description: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
showOnNav: {
type: "boolean";
schema: {
default: false;
};
};
publishedAt: {
type: "date";
schema: {
default: import("drizzle-orm").SQL<unknown>;
};
};
updatedAt: {
type: "date";
schema: {
optional: true;
};
};
slug: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
contentLang: {
type: "text";
schema: {
readonly default: "default";
};
};
heroImage: {
type: "text";
schema: {
readonly default: "https://images.unsplash.com/photo-1707343843982-f8275f3994c5?q=80&w=1032&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D";
};
};
categories: {
type: "json";
schema: {
default: never[];
optional: true;
};
};
tags: {
type: "json";
schema: {
default: never[];
optional: true;
};
};
authorId: {
type: "text";
schema: {
readonly optional: true;
};
};
contributorIds: {
type: "json";
schema: {
default: never[];
optional: true;
};
};
showAuthor: {
type: "boolean";
schema: {
default: false;
optional: true;
};
};
showContributors: {
type: "boolean";
schema: {
default: false;
optional: true;
};
};
parentFolder: {
type: "text";
schema: {
readonly optional: true;
};
};
draft: {
type: "boolean";
schema: {
optional: true;
};
};
augments: {
type: "json";
schema: {
default: never[];
optional: true;
};
};
}>;
export declare const tsDiffTracking: import("@astrojs/db/runtime").Table<"StudioCMSDiffTracking", {
id: {
type: "text";
schema: {
readonly primaryKey: true;
};
};
userId: {
type: "text";
schema: {
readonly references: () => {
type: "text";
schema: {
readonly primaryKey: true;
};
};
};
};
pageId: {
type: "text";
schema: {
readonly references: () => {
type: "text";
schema: {
readonly primaryKey: true;
};
};
};
};
timestamp: {
type: "date";
schema: {
default: import("drizzle-orm").SQL<unknown>;
optional: true;
};
};
pageMetaData: {
type: "json";
schema: {
optional: true;
};
};
pageContentStart: {
type: "text";
schema: {
readonly multiline: true;
};
};
diff: {
type: "text";
schema: {
readonly multiline: true;
readonly optional: true;
};
};
}>;
export declare const tsPageDataTags: import("@astrojs/db/runtime").Table<"StudioCMSPageDataTags", {
id: {
type: "number";
schema: {
primaryKey: true;
};
};
description: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
name: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
slug: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
meta: {
type: "json";
schema: {
name?: string | undefined;
label?: string | undefined;
optional?: boolean | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: unknown;
};
};
}>;
export declare const tsPageDataCategories: import("@astrojs/db/runtime").Table<"StudioCMSPageDataCategories", {
id: {
type: "number";
schema: {
primaryKey: true;
};
};
parent: {
type: "number";
schema: {
optional: true;
};
};
description: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
name: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
slug: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
meta: {
type: "json";
schema: {
name?: string | undefined;
label?: string | undefined;
optional?: boolean | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: unknown;
};
};
}>;
export declare const tsPageContent: import("@astrojs/db/runtime").Table<"StudioCMSPageContent", {
id: {
type: "text";
schema: {
readonly primaryKey: true;
};
};
contentId: {
type: "text";
schema: {
readonly references: () => {
type: "text";
schema: {
readonly primaryKey: true;
};
};
};
};
contentLang: {
type: "text";
schema: {
readonly default: "default";
};
};
content: {
type: "text";
schema: {
readonly multiline: true;
readonly optional: true;
};
};
}>;
export declare const tsEmailVerificationTokens: import("@astrojs/db/runtime").Table<"StudioCMSEmailVerificationTokens", {
id: {
type: "text";
schema: {
readonly primaryKey: true;
};
};
userId: {
type: "text";
schema: {
readonly references: () => {
type: "text";
schema: {
readonly primaryKey: true;
};
};
};
};
token: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
expiresAt: {
type: "date";
schema: {
name?: string | undefined;
label?: string | undefined;
optional?: boolean | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: Date | import("drizzle-orm").SQL<any> | undefined;
};
};
}>;
export declare const tsPluginData: import("@astrojs/db/runtime").Table<"StudioCMSPluginData", {
id: {
type: "text";
schema: {
readonly primaryKey: true;
};
};
data: {
type: "json";
schema: {
name?: string | undefined;
label?: string | undefined;
optional?: boolean | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: unknown;
};
};
}>;
export declare const tsDynamicConfigSettings: import("@astrojs/db/runtime").Table<"StudioCMSDynamicConfigSettings", {
id: {
type: "text";
schema: {
readonly primaryKey: true;
};
};
data: {
type: "json";
schema: {
name?: string | undefined;
label?: string | undefined;
optional?: boolean | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: unknown;
};
};
}>;
/**
* @deprecated
*/
export declare const tsSiteConfig: import("@astrojs/db/runtime").Table<"StudioCMSSiteConfig", {
id: {
type: "number";
schema: {
primaryKey: true;
};
};
title: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
description: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
defaultOgImage: {
type: "text";
schema: {
readonly optional: true;
};
};
siteIcon: {
type: "text";
schema: {
readonly optional: true;
};
};
loginPageBackground: {
type: "text";
schema: {
readonly default: "studiocms-curves";
};
};
loginPageCustomImage: {
type: "text";
schema: {
readonly optional: true;
};
};
enableDiffs: {
type: "boolean";
schema: {
default: false;
};
};
diffPerPage: {
type: "number";
schema: {
default: number;
};
};
gridItems: {
type: "json";
schema: {
default: never[];
};
};
enableMailer: {
type: "boolean";
schema: {
default: false;
};
};
hideDefaultIndex: {
type: "boolean";
schema: {
default: false;
};
};
}>;
/**
* @deprecated
*/
export declare const tsMailerConfig: import("@astrojs/db/runtime").Table<"StudioCMSMailerConfig", {
id: {
type: "text";
schema: {
readonly primaryKey: true;
};
};
host: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
port: {
type: "number";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
} & ({
optional?: boolean | undefined;
default?: number | import("drizzle-orm").SQL<any> | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
default?: undefined;
})) & {
references?: () => {
type: "number";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
} & ({
optional?: boolean | undefined;
default?: number | import("drizzle-orm").SQL<any> | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
default?: undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
secure: {
type: "boolean";
schema: {
name?: string | undefined;
label?: string | undefined;
optional?: boolean | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: boolean | import("drizzle-orm").SQL<any> | undefined;
};
};
proxy: {
type: "text";
schema: {
readonly optional: true;
};
};
auth_user: {
type: "text";
schema: {
readonly optional: true;
};
};
auth_pass: {
type: "text";
schema: {
readonly optional: true;
};
};
tls_rejectUnauthorized: {
type: "boolean";
schema: {
optional: true;
};
};
tls_servername: {
type: "text";
schema: {
readonly optional: true;
};
};
default_sender: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
}>;
/**
* @deprecated
*/
export declare const tsNotificationSettings: import("@astrojs/db/runtime").Table<"StudioCMSNotificationSettings", {
id: {
type: "text";
schema: {
readonly primaryKey: true;
};
};
emailVerification: {
type: "boolean";
schema: {
default: false;
};
};
requireAdminVerification: {
type: "boolean";
schema: {
default: false;
};
};
requireEditorVerification: {
type: "boolean";
schema: {
default: false;
};
};
oAuthBypassVerification: {
type: "boolean";
schema: {
default: false;
};
};
}>;