Create campaigns

This commit is contained in:
2025-05-28 14:44:59 -07:00
parent 5604b6ffdc
commit d3fd1992db
3 changed files with 99 additions and 2 deletions

View File

@@ -1,10 +1,17 @@
export type Id<T extends string> = string & { __type: T };
export type UserId = Id<"User">;
export type CampaignId = Id<"Campaign">;
export type DocumentId = Id<"Document">;
export type Campaign = {
id: string;
id: CampaignId;
name: string;
owner: UserId;
};
export type Document = {
id: string;
id: DocumentId;
campaign: Campaign;
data: {};
};