added collaboration mode for collections

This commit is contained in:
Daniel
2023-04-27 00:10:48 +03:30
parent e715756cbe
commit cc8e8dbe9a
16 changed files with 279 additions and 37 deletions
+12 -1
View File
@@ -3,7 +3,7 @@
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
import { Collection, Link, Tag } from "@prisma/client";
import { Collection, Link, Tag, UsersAndCollections } from "@prisma/client";
export interface ExtendedLink extends Link {
tags: Tag[];
@@ -24,4 +24,15 @@ export interface NewLink {
export interface NewCollection {
name: string;
description: string;
members: {
name: string;
email: string;
canCreate: boolean;
canUpdate: boolean;
canDelete: boolean;
}[];
}
export interface ExtendedCollection extends Collection {
members: UsersAndCollections[];
}