mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-23 23:09:37 +02:00
Add migrations and code for sharedAdventures table
This commit is contained in:
parent
9baab4c675
commit
56a8a45efb
11 changed files with 301 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
import { pgTable,serial,text } from "drizzle-orm/pg-core";
|
||||
import { pgTable,json,text,serial } from "drizzle-orm/pg-core";
|
||||
|
||||
export const featuredAdventures = pgTable("featuredAdventures",{
|
||||
id:serial("id").primaryKey(),
|
||||
|
@ -6,4 +6,7 @@ export const featuredAdventures = pgTable("featuredAdventures",{
|
|||
location:text("location"),
|
||||
})
|
||||
|
||||
|
||||
export const sharedAdventures = pgTable("sharedAdventures",{
|
||||
id:text("id").primaryKey(),
|
||||
data:json("data").notNull(),
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue