Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
</h3>

<p align="center">
<img alt="Web Build Status" src="https://img.shields.io/github/actions/workflow/status/Lycoon/scriptio/.github%2Fworkflows%2Fci-web.yaml?style=for-the-badge&logo=docker&logoColor=white&label=Web">
<img alt="Windows Build Status" src="https://img.shields.io/github/actions/workflow/status/Lycoon/scriptio/ci-windows.yaml?style=for-the-badge&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0ODc1IDQ4NzUiPjxwYXRoIGZpbGw9IndoaXRlIiBkPSJNMCAwaDIzMTF2MjMxMEgwem0yNTY0IDBoMjMxMXYyMzEwSDI1NjR6TTAgMjU2NGgyMzExdjIzMTFIMHptMjU2NCAwaDIzMTF2MjMxMUgyNTY0Ii8%2BPC9zdmc%2B&label=Windows">
<img alt="MacOS Build Status" src="https://img.shields.io/github/actions/workflow/status/Lycoon/scriptio/.github%2Fworkflows%2Fci-macos.yaml?style=for-the-badge&logo=apple&label=MacOS">
<img alt="Web Build Status" src="https://img.shields.io/github/actions/workflow/status/Lycoon/scriptio/.github%2Fworkflows%2Fchecks.yaml?branch=dev&job=build-docker&style=for-the-badge&logo=docker&logoColor=white&label=Web">
<img alt="Windows Build Status" src="https://img.shields.io/github/actions/workflow/status/Lycoon/scriptio/.github%2Fworkflows%2Fchecks.yaml?branch=dev&job=build-windows&style=for-the-badge&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0ODc1IDQ4NzUiPjxwYXRoIGZpbGw9IndoaXRlIiBkPSJNMCAwaDIzMTF2MjMxMEgwem0yNTY0IDBoMjMxMXYyMzEwSDI1NjR6TTAgMjU2NGgyMzExdjIzMTFIMHptMjU2NCAwaDIzMTF2MjMxMUgyNTY0Ii8%2BPC9zdmc%2B&label=Windows">
<img alt="MacOS Build Status" src="https://img.shields.io/github/actions/workflow/status/Lycoon/scriptio/.github%2Fworkflows%2Fchecks.yaml?branch=dev&job=build-macos&style=for-the-badge&logo=apple&label=MacOS">
</p>

# Features
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
-- CreateEnum
CREATE TYPE "ProjectRole" AS ENUM ('OWNER', 'ADMIN', 'EDITOR', 'VIEWER');

-- CreateEnum
CREATE TYPE "SubscriptionProvider" AS ENUM ('STRIPE', 'APPLE');

-- CreateTable
CREATE TABLE "User" (
"id" TEXT NOT NULL,
Expand All @@ -10,8 +13,8 @@ CREATE TABLE "User" (
"username" TEXT,
"color" TEXT,
"isProUntil" TIMESTAMP(3),
"stripeSubscriptionId" TEXT,
"isSubscriptionCancelled" BOOLEAN NOT NULL DEFAULT false,
"subscriptionProvider" "SubscriptionProvider",
"settings" JSONB,

CONSTRAINT "User_pkey" PRIMARY KEY ("id")
Expand Down Expand Up @@ -65,6 +68,17 @@ CREATE TABLE "MagicLinkToken" (
CONSTRAINT "MagicLinkToken_pkey" PRIMARY KEY ("id")
);

-- CreateTable
CREATE TABLE "Transaction" (
"id" SERIAL NOT NULL,
"userId" TEXT NOT NULL,
"provider" "SubscriptionProvider" NOT NULL,
"transactionId" TEXT NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,

CONSTRAINT "Transaction_pkey" PRIMARY KEY ("id")
);

-- CreateTable
CREATE TABLE "Project" (
"id" TEXT NOT NULL,
Expand Down Expand Up @@ -120,6 +134,12 @@ CREATE UNIQUE INDEX "MagicLinkToken_tokenHash_key" ON "MagicLinkToken"("tokenHas
-- CreateIndex
CREATE INDEX "MagicLinkToken_email_createdAt_idx" ON "MagicLinkToken"("email", "createdAt");

-- CreateIndex
CREATE INDEX "Transaction_userId_idx" ON "Transaction"("userId");

-- CreateIndex
CREATE INDEX "Transaction_transactionId_idx" ON "Transaction"("transactionId");

-- CreateIndex
CREATE UNIQUE INDEX "ProjectMember_userId_projectId_key" ON "ProjectMember"("userId", "projectId");

Expand All @@ -135,6 +155,9 @@ ALTER TABLE "Account" ADD CONSTRAINT "Account_userId_fkey" FOREIGN KEY ("userId"
-- AddForeignKey
ALTER TABLE "Session" ADD CONSTRAINT "Session_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "Transaction" ADD CONSTRAINT "Transaction_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "ProjectMember" ADD CONSTRAINT "ProjectMember_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;

Expand Down
6 changes: 6 additions & 0 deletions src/vendor.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
// top-level import/export so TypeScript treats it as a script file and these declarations
// act as true ambient overrides rather than module augmentations.

declare module "*.svg" {
import type { FC, SVGProps } from "react";
const ReactComponent: FC<SVGProps<SVGSVGElement>>;
export default ReactComponent;
}

declare module "@formkit/auto-animate" {
interface Coordinates { top: number; left: number; width: number; height: number }
export interface AnimationController<P = unknown> {
Expand Down