Skip to content

Commit

Permalink
Fix css issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Aug 13, 2020
1 parent dc267f8 commit 585706c
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 109 deletions.
68 changes: 0 additions & 68 deletions cli.js

This file was deleted.

22 changes: 0 additions & 22 deletions cli/create-account.js

This file was deleted.

7 changes: 7 additions & 0 deletions cli/init.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import term from 'terminal-kit';

const { terminal } = term;

export default function init() {
terminal('hello!');
}
1 change: 1 addition & 0 deletions components/charts/MetricCard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
line-height: 40px;
min-height: 40px;
font-weight: 600;
white-space: nowrap;
}

.label {
Expand Down
1 change: 0 additions & 1 deletion index.js

This file was deleted.

84 changes: 84 additions & 0 deletions prisma/schema.mysql.prisma
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
generator client {
provider = "prisma-client-js"
}

datasource db {
provider = "mysql"
url = env("DATABASE_URL")
}

model account {
user_id Int @default(autoincrement()) @id
username String @unique
password String
is_admin Boolean @default(false)
created_at DateTime? @default(now())
updated_at DateTime? @default(now())
website website[]
}

model event {
event_id Int @default(autoincrement()) @id
website_id Int
session_id Int
created_at DateTime? @default(now())
url String
event_type String
event_value String
session session @relation(fields: [session_id], references: [session_id])
website website @relation(fields: [website_id], references: [website_id])
@@index([created_at], name: "event_created_at_idx")
@@index([session_id], name: "event_session_id_idx")
@@index([website_id], name: "event_website_id_idx")
}

model pageview {
view_id Int @default(autoincrement()) @id
website_id Int
session_id Int
created_at DateTime? @default(now())
url String
referrer String?
session session @relation(fields: [session_id], references: [session_id])
website website @relation(fields: [website_id], references: [website_id])
@@index([created_at], name: "pageview_created_at_idx")
@@index([session_id], name: "pageview_session_id_idx")
@@index([website_id], name: "pageview_website_id_idx")
}

model session {
session_id Int @default(autoincrement()) @id
session_uuid String @unique
website_id Int
created_at DateTime? @default(now())
hostname String?
browser String?
os String?
device String?
screen String?
language String?
country String?
website website @relation(fields: [website_id], references: [website_id])
event event[]
pageview pageview[]
@@index([created_at], name: "session_created_at_idx")
@@index([website_id], name: "session_website_id_idx")
}

model website {
website_id Int @default(autoincrement()) @id
website_uuid String @unique
user_id Int
name String
domain String?
created_at DateTime? @default(now())
account account @relation(fields: [user_id], references: [user_id])
event event[]
pageview pageview[]
session session[]
@@index([user_id], name: "website_user_id_idx")
}
2 changes: 2 additions & 0 deletions prisma/schema.prisma → prisma/schema.postgresql.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,6 @@ model website {
event event[]
pageview pageview[]
session session[]
@@index([user_id], name: "website_user_id_idx")
}
18 changes: 0 additions & 18 deletions rollup.cli.config.js

This file was deleted.

0 comments on commit 585706c

Please sign in to comment.