mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-24 20:55:04 +02:00
added basic proxyTargets schema
This commit is contained in:
parent
3fea8be65f
commit
6c91415de4
4 changed files with 99 additions and 5 deletions
|
@ -1,10 +1,12 @@
|
|||
import { InferSelectModel } from "drizzle-orm";
|
||||
import { sqliteTable, text, integer } from "drizzle-orm/sqlite-core";
|
||||
|
||||
export const schools = sqliteTable("schools", {
|
||||
id: integer("id").primaryKey({ autoIncrement: true }),
|
||||
name: text("name"),
|
||||
abbreviation: text("abbreviation"),
|
||||
export const proxyTargets = sqliteTable("proxyTargets", {
|
||||
id: text("id").unique().notNull().primaryKey(),
|
||||
target: text("target").notNull(),
|
||||
rule: text("rule").notNull(),
|
||||
entryPoint: text("entryPoint").notNull(),
|
||||
enabled: integer("enabled", { mode: "boolean" }).notNull().default(true),
|
||||
});
|
||||
|
||||
export type SelectSchoolType = InferSelectModel<typeof schools>;
|
||||
export type SelectProxyTargets = InferSelectModel<typeof proxyTargets>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue