mirror of
https://github.com/immich-app/immich.git
synced 2026-04-25 18:39:59 -04:00
26 lines
562 B
TypeScript
26 lines
562 B
TypeScript
import { Column, CreateDateColumn, Generated, PrimaryGeneratedColumn, Table, Timestamp } from '@immich/sql-tools';
|
|
|
|
@Table({ name: 'oauth_link_token' })
|
|
export class OAuthLinkTokenTable {
|
|
@PrimaryGeneratedColumn()
|
|
id!: Generated<string>;
|
|
|
|
@Column({ type: 'bytea', index: true })
|
|
token!: Buffer;
|
|
|
|
@Column()
|
|
oauthSub!: string;
|
|
|
|
@Column({ nullable: true })
|
|
oauthSid!: string | null;
|
|
|
|
@Column()
|
|
email!: string;
|
|
|
|
@Column({ type: 'timestamp with time zone' })
|
|
expiresAt!: Timestamp;
|
|
|
|
@CreateDateColumn()
|
|
createdAt!: Generated<Timestamp>;
|
|
}
|