Skip to content

sdk/tables

const tsAPIKeys: Table<"StudioCMSAPIKeys", {
creationDate: {
type: "date";
};
description: {
type: "text";
};
id: {
type: "text";
};
key: {
type: "text";
};
userId: {
type: "text";
};
}>;

Defined in: studiocms/packages/studiocms/src/sdk/tables.ts:21


const tsDiffTracking: Table<"StudioCMSDiffTracking", {
diff: {
type: "text";
};
id: {
type: "text";
};
pageContentStart: {
type: "text";
};
pageId: {
type: "text";
};
pageMetaData: {
type: "json";
};
timestamp: {
type: "date";
};
userId: {
type: "text";
};
}>;

Defined in: studiocms/packages/studiocms/src/sdk/tables.ts:84

Exported TypeSafe Table definition for use in StudioCMS Integrations


const tsOAuthAccounts: Table<"StudioCMSOAuthAccounts", {
provider: {
type: "text";
};
providerUserId: {
type: "text";
};
userId: {
type: "text";
};
}>;

Defined in: studiocms/packages/studiocms/src/sdk/tables.ts:78

Exported TypeSafe Table definition for use in StudioCMS Integrations


const tsPageContent: Table<"StudioCMSPageContent", {
content: {
type: "text";
};
contentId: {
type: "text";
};
contentLang: {
type: "text";
};
id: {
type: "text";
};
}>;

Defined in: studiocms/packages/studiocms/src/sdk/tables.ts:27

Exported TypeSafe Table definition for use in StudioCMS Integrations


const tsPageData: Table<"StudioCMSPageData", {
authorId: {
type: "text";
};
categories: {
type: "json";
};
contentLang: {
type: "text";
};
contributorIds: {
type: "json";
};
description: {
type: "text";
};
draft: {
type: "boolean";
};
heroImage: {
type: "text";
};
id: {
type: "text";
};
package: {
type: "text";
};
parentFolder: {
type: "text";
};
publishedAt: {
type: "date";
};
showAuthor: {
type: "boolean";
};
showContributors: {
type: "boolean";
};
showOnNav: {
type: "boolean";
};
slug: {
type: "text";
};
tags: {
type: "json";
};
title: {
type: "text";
};
updatedAt: {
type: "date";
};
}>;

Defined in: studiocms/packages/studiocms/src/sdk/tables.ts:33

Exported TypeSafe Table definition for use in StudioCMS Integrations


const tsPageDataCategories: Table<"StudioCMSPageDataCategories", {
description: {
type: "text";
};
id: {
type: "number";
};
meta: {
type: "json";
};
name: {
type: "text";
};
parent: {
type: "number";
};
slug: {
type: "text";
};
}>;

Defined in: studiocms/packages/studiocms/src/sdk/tables.ts:39

Exported TypeSafe Table definition for use in StudioCMS Integrations


const tsPageDataTags: Table<"StudioCMSPageDataTags", {
description: {
type: "text";
};
id: {
type: "number";
};
meta: {
type: "json";
};
name: {
type: "text";
};
slug: {
type: "text";
};
}>;

Defined in: studiocms/packages/studiocms/src/sdk/tables.ts:48

Exported TypeSafe Table definition for use in StudioCMS Integrations


const tsPageFolderStructure: Table<"StudioCMSPageFolderStructure", {
id: {
type: "text";
};
name: {
type: "text";
};
parent: {
type: "text";
};
}>;

Defined in: studiocms/packages/studiocms/src/sdk/tables.ts:90

Exported TypeSafe Table definition for use in StudioCMS Integrations


const tsPermissions: Table<"StudioCMSPermissions", {
rank: {
type: "text";
};
user: {
type: "text";
};
}>;

Defined in: studiocms/packages/studiocms/src/sdk/tables.ts:54

Exported TypeSafe Table definition for use in StudioCMS Integrations


const tsSessionTable: Table<"StudioCMSSessionTable", {
expiresAt: {
type: "date";
};
id: {
type: "text";
};
userId: {
type: "text";
};
}>;

Defined in: studiocms/packages/studiocms/src/sdk/tables.ts:60

Exported TypeSafe Table definition for use in StudioCMS Integrations


const tsSiteConfig: Table<"StudioCMSSiteConfig", {
defaultOgImage: {
type: "text";
};
description: {
type: "text";
};
diffPerPage: {
type: "number";
};
enableDiffs: {
type: "boolean";
};
gridItems: {
type: "json";
};
id: {
type: "number";
};
loginPageBackground: {
type: "text";
};
loginPageCustomImage: {
type: "text";
};
siteIcon: {
type: "text";
};
title: {
type: "text";
};
}>;

Defined in: studiocms/packages/studiocms/src/sdk/tables.ts:66

Exported TypeSafe Table definition for use in StudioCMS Integrations


const tsUserResetTokens: Table<"StudioCMSUserResetTokens", {
id: {
type: "text";
};
token: {
type: "text";
};
userId: {
type: "text";
};
}>;

Defined in: studiocms/packages/studiocms/src/sdk/tables.ts:99

Exported TypeSafe Table definition for use in StudioCMS Integrations


const tsUsers: Table<"StudioCMSUsers", {
avatar: {
type: "text";
};
createdAt: {
type: "date";
};
email: {
type: "text";
};
id: {
type: "text";
};
name: {
type: "text";
};
password: {
type: "text";
};
updatedAt: {
type: "date";
};
url: {
type: "text";
};
username: {
type: "text";
};
}>;

Defined in: studiocms/packages/studiocms/src/sdk/tables.ts:72

Exported TypeSafe Table definition for use in StudioCMS Integrations

Re-exports tsMetric