mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-08 19:56:37 +00:00
♻️ refactor
This commit is contained in:
@@ -1,18 +1,16 @@
|
|||||||
import {
|
|
||||||
pgTable,
|
|
||||||
serial,
|
|
||||||
varchar,
|
|
||||||
boolean,
|
|
||||||
integer,
|
|
||||||
bigint,
|
|
||||||
real,
|
|
||||||
text,
|
|
||||||
index,
|
|
||||||
uniqueIndex
|
|
||||||
} from "drizzle-orm/pg-core";
|
|
||||||
import { InferSelectModel } from "drizzle-orm";
|
|
||||||
import { randomUUID } from "crypto";
|
import { randomUUID } from "crypto";
|
||||||
import { alias } from "yargs";
|
import { InferSelectModel } from "drizzle-orm";
|
||||||
|
import {
|
||||||
|
bigint,
|
||||||
|
boolean,
|
||||||
|
index,
|
||||||
|
integer,
|
||||||
|
pgTable,
|
||||||
|
real,
|
||||||
|
serial,
|
||||||
|
text,
|
||||||
|
varchar
|
||||||
|
} from "drizzle-orm/pg-core";
|
||||||
|
|
||||||
export const domains = pgTable("domains", {
|
export const domains = pgTable("domains", {
|
||||||
domainId: varchar("domainId").primaryKey(),
|
domainId: varchar("domainId").primaryKey(),
|
||||||
|
|||||||
@@ -1,13 +1,6 @@
|
|||||||
import { randomUUID } from "crypto";
|
import { randomUUID } from "crypto";
|
||||||
import { InferSelectModel } from "drizzle-orm";
|
import { InferSelectModel } from "drizzle-orm";
|
||||||
import {
|
import { index, integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
|
||||||
sqliteTable,
|
|
||||||
text,
|
|
||||||
integer,
|
|
||||||
index,
|
|
||||||
uniqueIndex
|
|
||||||
} from "drizzle-orm/sqlite-core";
|
|
||||||
import { no } from "zod/v4/locales";
|
|
||||||
|
|
||||||
export const domains = sqliteTable("domains", {
|
export const domains = sqliteTable("domains", {
|
||||||
domainId: text("domainId").primaryKey(),
|
domainId: text("domainId").primaryKey(),
|
||||||
|
|||||||
Reference in New Issue
Block a user