-
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.
🚧 were moving to rounds - simplifying our structure
- Loading branch information
Showing
30 changed files
with
195 additions
and
792 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
9 changes: 5 additions & 4 deletions
9
app/components/cycle/CycleForm.vue → app/components/round/RoundForm.vue
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,42 +1,16 @@ | ||
model Cartridge { | ||
model Round { | ||
id Int @id @default(autoincrement()) | ||
userId Int | ||
user User @relation(fields: [userId], references: [id]) | ||
content String | ||
ml Decimal | ||
mg Decimal | ||
shots Shot[] | ||
pen Pen? | ||
color String | ||
frequency String | ||
duration String | ||
portions Int | ||
createdAt DateTime @default(now()) | ||
updatedAt DateTime @updatedAt | ||
@@map("cartridges") | ||
} | ||
|
||
model Pen { | ||
id Int @id @default(autoincrement()) | ||
user User @relation(fields: [userId], references: [id]) | ||
userId Int | ||
cartridge Cartridge? @relation(fields: [cartridgeId], references: [id], onDelete: Restrict) | ||
cartridgeId Int? @unique | ||
color String | ||
shotDay String? | ||
createdAt DateTime @default(now()) | ||
updatedAt DateTime @updatedAt | ||
@@map("pens") | ||
} | ||
|
||
model Shot { | ||
id Int @id @default(autoincrement()) | ||
userId Int | ||
user User @relation(fields: [userId], references: [id]) | ||
cartridgeId Int | ||
cartridge Cartridge @relation(fields: [cartridgeId], references: [id], onDelete: Cascade, onUpdate: Cascade) | ||
units Int | ||
date DateTime | ||
createdAt DateTime @default(now()) | ||
updatedAt DateTime @updatedAt | ||
@@map("shots") | ||
} | ||
@@map("rounds") | ||
} |
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
Oops, something went wrong.