Fakultas Ilmu Komputer UI

Commit d5d41f1f authored by Ahmad Izzudin Alifyandra's avatar Ahmad Izzudin Alifyandra
Browse files

Add new types for new firestore schemas

parent 6a930499
export type ICategory = {
id?: string;
name: string;
has_sub: boolean;
};
export type IEcosystemCategoryMember = {
id?: string;
type: "supplier" | "customer" | "support" | "main";
ecosystemId: string;
categoryId: string;
};
export type IEcosystemMembership = {
id?: string;
userId: string;
categoryMemberId: string;
};
export type IEcosystem = {
id?: string;
name: string;
description: string;
categoryId: string;
pic: string;
rating: number;
raters: number;
followerCount: number;
visibility: "private" | "protected" | "public";
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment