feat: subscriptions and documents page

This commit is contained in:
pit
2023-10-05 18:35:12 +03:00
parent b5fc6e1aaf
commit 2b44e54d99
4 changed files with 81 additions and 1 deletions

View File

@ -0,0 +1,13 @@
import { prisma } from '@documenso/prisma';
export const findSubscriptions = async () => {
return prisma.subscription.findMany({
select: {
id: true,
status: true,
createdAt: true,
periodEnd: true,
userId: true,
},
});
};