-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
104 additions
and
76 deletions.
There are no files selected for viewing
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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
generator client { | ||
provider = "prisma-client-js" | ||
engineType = "binary" | ||
} | ||
|
||
datasource db { | ||
provider = "postgresql" | ||
url = env("DATABASE_URL") | ||
} | ||
|
||
model User { | ||
id Int @id @default(autoincrement()) | ||
user String @unique | ||
added_on DateTime @db.Date | ||
mastId BigInt @unique | ||
tags UserTag[] | ||
} | ||
|
||
model UserTag { | ||
tag String | ||
userId Int | ||
date DateTime @db.Date | ||
id BigInt @id @default(autoincrement()) | ||
user User @relation(fields: [userId], references: [id]) | ||
@@index([date, tag, userId]) | ||
} | ||
|
||
model SpicyUser { | ||
user String @unique | ||
added_on DateTime @db.Date | ||
id BigInt @id @default(autoincrement()) | ||
} | ||
|
||
model Application { | ||
domain String @id | ||
clientId String | ||
clientSecret String | ||
vapidKey String | ||
redirectUris String | ||
} | ||
|
||
model ConnectedUser { | ||
mastodonId String @id | ||
authCode String? | ||
connectedOn DateTime @default(now()) @db.Date | ||
domain String | ||
} | ||
|
||
model MastodonOAuth { | ||
access_token String | ||
refresh_token DateTime | ||
client_id String @id | ||
} | ||
|
||
model OpaqueId { | ||
opaqueId String @id | ||
mastodonId String | ||
createdOn DateTime @default(now()) @db.Date | ||
accessToken String? | ||
} | ||
|
||
model SpicyTags { | ||
mastodonId String | ||
tag String | ||
hide Boolean @default(false) | ||
@@id([mastodonId, tag]) | ||
} |
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 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 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 file was deleted.
Oops, something went wrong.
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 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 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 file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
provider "aws" { | ||
region = var.region | ||
profile = var.aws_profile | ||
default_tags { | ||
tags = { | ||
product = var.product | ||
env = var.env | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,3 @@ module "sample_tags" { | |
schedule_expression = "rate(3 minutes)" | ||
fifo = false | ||
} | ||
|