Create campaigns
This commit is contained in:
@@ -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: {};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user