1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-23 23:09:37 +02:00
AdventureLog/src/lib/db/schema.ts

13 lines
363 B
TypeScript
Raw Normal View History

2024-04-02 22:02:20 +00:00
import { pgTable, json, text, serial } from "drizzle-orm/pg-core";
2024-04-02 22:02:20 +00:00
export const featuredAdventures = pgTable("featuredAdventures", {
id: serial("id").primaryKey(),
name: text("name").notNull(),
location: text("location"),
});
2024-04-02 22:02:20 +00:00
export const sharedAdventures = pgTable("sharedAdventures", {
id: text("id").primaryKey(),
data: json("data").notNull(),
});