feat(frontend): migrated old > new silo adjustments
moved the apps around so we can use 1 url for cors bs
This commit is contained in:
29
app/src/pkg/db/schema/forecastEDIData.ts
Normal file
29
app/src/pkg/db/schema/forecastEDIData.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import {
|
||||
boolean,
|
||||
integer,
|
||||
jsonb,
|
||||
pgTable,
|
||||
real,
|
||||
text,
|
||||
timestamp,
|
||||
uuid,
|
||||
} from "drizzle-orm/pg-core";
|
||||
import { createInsertSchema, createSelectSchema } from "drizzle-zod";
|
||||
import { z } from "zod";
|
||||
|
||||
export const forecastData = pgTable("forecast_Data", {
|
||||
id: uuid("id").defaultRandom().primaryKey(),
|
||||
customerArticleNumber: text("customer_article_number"),
|
||||
dateRequested: timestamp("date_requested").defaultNow(),
|
||||
quantity: real("quantity"),
|
||||
requestDate: timestamp("request_date").notNull(),
|
||||
article: integer("article"),
|
||||
customerID: integer("customer_id").notNull(),
|
||||
createdAt: timestamp("created_at").defaultNow(),
|
||||
});
|
||||
|
||||
export const forecastDataSchema = createSelectSchema(forecastData);
|
||||
export const newForecastDataSchema = createInsertSchema(forecastData);
|
||||
|
||||
export type ForecastData = z.infer<typeof forecastDataSchema>;
|
||||
export type NewForecastData = z.infer<typeof newForecastDataSchema>;
|
||||
Reference in New Issue
Block a user