mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 13:56:43 +00:00
25 lines
870 B
TypeScript
25 lines
870 B
TypeScript
// Code generated by automation script, DO NOT EDIT.
|
|
// Automated by pulling database and generating zod schema
|
|
// To update. Just run npm run generate:schema
|
|
// Written by akhilmhdh.
|
|
|
|
import { z } from "zod";
|
|
|
|
import { TImmutableDBKeys } from "./models";
|
|
|
|
export const AuthTokenSessionsSchema = z.object({
|
|
id: z.string().uuid(),
|
|
ip: z.string(),
|
|
userAgent: z.string().nullable().optional(),
|
|
refreshVersion: z.number().default(1),
|
|
accessVersion: z.number().default(1),
|
|
lastUsed: z.date(),
|
|
createdAt: z.date(),
|
|
updatedAt: z.date(),
|
|
userId: z.string().uuid()
|
|
});
|
|
|
|
export type TAuthTokenSessions = z.infer<typeof AuthTokenSessionsSchema>;
|
|
export type TAuthTokenSessionsInsert = Omit<z.input<typeof AuthTokenSessionsSchema>, TImmutableDBKeys>;
|
|
export type TAuthTokenSessionsUpdate = Partial<Omit<z.input<typeof AuthTokenSessionsSchema>, TImmutableDBKeys>>;
|