import { mysqlTable, serial, text } from "drizzle-orm/mysql-core";
import { relations } from "drizzle-orm";
export const journeys = mysqlTable("journey", {
id: serial("id").primaryKey(),
journeyRef: text("journeyRef"),
customer_firstName: text("customer_firstName"),
customer_lastName: text("customer_lastName"),
customer_emailAddress: text("customer_emailAddress"),
type: text("type"),
});
export const products = mysqlTable("product", {
id: serial("id").primaryKey(),
name: text("name"),
});
export const journeysRelations = relations(journeys, ({ many }) => ({
products: many(products),
}));
import { mysqlTable, serial, text } from "drizzle-orm/mysql-core";
import { relations } from "drizzle-orm";
export const journeys = mysqlTable("journey", {
id: serial("id").primaryKey(),
journeyRef: text("journeyRef"),
customer_firstName: text("customer_firstName"),
customer_lastName: text("customer_lastName"),
customer_emailAddress: text("customer_emailAddress"),
type: text("type"),
});
export const products = mysqlTable("product", {
id: serial("id").primaryKey(),
name: text("name"),
});
export const journeysRelations = relations(journeys, ({ many }) => ({
products: many(products),
}));