mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-04 09:46:40 +00:00
Fix issues in pg schema
This commit is contained in:
@@ -504,8 +504,8 @@ export const clients = pgTable("clients", {
|
|||||||
name: varchar("name").notNull(),
|
name: varchar("name").notNull(),
|
||||||
pubKey: varchar("pubKey"),
|
pubKey: varchar("pubKey"),
|
||||||
subnet: varchar("subnet").notNull(),
|
subnet: varchar("subnet").notNull(),
|
||||||
megabytesIn: integer("bytesIn"),
|
megabytesIn: real("bytesIn"),
|
||||||
megabytesOut: integer("bytesOut"),
|
megabytesOut: real("bytesOut"),
|
||||||
lastBandwidthUpdate: varchar("lastBandwidthUpdate"),
|
lastBandwidthUpdate: varchar("lastBandwidthUpdate"),
|
||||||
lastPing: varchar("lastPing"),
|
lastPing: varchar("lastPing"),
|
||||||
type: varchar("type").notNull(), // "olm"
|
type: varchar("type").notNull(), // "olm"
|
||||||
@@ -539,7 +539,7 @@ export const olmSessions = pgTable("clientSession", {
|
|||||||
olmId: varchar("olmId")
|
olmId: varchar("olmId")
|
||||||
.notNull()
|
.notNull()
|
||||||
.references(() => olms.olmId, { onDelete: "cascade" }),
|
.references(() => olms.olmId, { onDelete: "cascade" }),
|
||||||
expiresAt: integer("expiresAt").notNull()
|
expiresAt: bigint("expiresAt", { mode: "number" }).notNull(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export const userClients = pgTable("userClients", {
|
export const userClients = pgTable("userClients", {
|
||||||
|
|||||||
Reference in New Issue
Block a user