Created
May 20, 2023 09:35
-
-
Save kuc-arc-f/37cd6e871c38039c3c608e154b3d51df to your computer and use it in GitHub Desktop.
schema.prisma: prisma ORM, Cloudflare D1 , git clone count sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is your Prisma schema file, | |
// learn more about it in the docs: https://pris.ly/d/prisma-schema | |
generator client { | |
provider = "prisma-client-js" | |
} | |
datasource db { | |
provider = "sqlite" | |
url = env("DATABASE_URL") | |
} | |
model User { | |
id Int @id @default(autoincrement()) | |
createdAt DateTime @default(now()) | |
updatedAt DateTime @updatedAt | |
password String | |
email String @unique | |
name String? | |
} | |
model Task { | |
id Int @id @default(autoincrement()) | |
createdAt DateTime @default(now()) | |
updatedAt DateTime @updatedAt | |
title String? | |
content String? | |
userId Int? | |
} | |
model Session { | |
id Int @id @default(autoincrement()) | |
sessionId String | |
key String | |
value String? | |
createdAt DateTime @default(now()) | |
updatedAt DateTime? @updatedAt | |
} | |
model Repo { | |
id Int @id @default(autoincrement()) | |
name String | |
createdAt DateTime @default(now()) | |
updatedAt DateTime? @updatedAt | |
} | |
model RepoCount { | |
id Int @id @default(autoincrement()) | |
count Int? | |
uniques Int? | |
repoId Int | |
createdAt DateTime @default(now()) | |
updatedAt DateTime? @updatedAt | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment