mirror of
https://github.com/immich-app/immich.git
synced 2026-05-27 10:02:31 -04:00
8682be4774
* wip: confirm before existing and disable/enable save button condition * fix: get correct workflow detail * wip: add back workflow summary * wip: add back json editor * wip: step property badge * wip: redesign card flow * wip: redesign card flow * redesign workflow summary * wworkflow summary styling * wip * drag and drop * list redesign * refactor * refactor * remove deadcode * refactor * insert steps * push down when dropped * feat: workflow template * simplify * move template to manifest * feat: hash manifest file * fix: template column * fix: migration * fix: workflow lookup * chore: clean up --------- Co-authored-by: Jason Rasmussen <jason@rasm.me>
52 lines
917 B
TypeScript
52 lines
917 B
TypeScript
import {
|
|
Column,
|
|
CreateDateColumn,
|
|
Generated,
|
|
PrimaryGeneratedColumn,
|
|
Table,
|
|
Timestamp,
|
|
Unique,
|
|
UpdateDateColumn,
|
|
} from '@immich/sql-tools';
|
|
import { PluginTemplate } from 'src/dtos/plugin.dto';
|
|
|
|
@Unique({ columns: ['name', 'version'] })
|
|
@Table('plugin')
|
|
export class PluginTable {
|
|
@PrimaryGeneratedColumn('uuid')
|
|
id!: Generated<string>;
|
|
|
|
@Column({ type: 'boolean', default: true })
|
|
enabled!: Generated<boolean>;
|
|
|
|
@Column({ index: true, unique: true })
|
|
name!: string;
|
|
|
|
@Column()
|
|
version!: string;
|
|
|
|
@Column()
|
|
title!: string;
|
|
|
|
@Column()
|
|
description!: string;
|
|
|
|
@Column()
|
|
author!: string;
|
|
|
|
@Column({ type: 'bytea' })
|
|
wasmBytes!: Buffer;
|
|
|
|
@Column({ type: 'jsonb' })
|
|
templates!: PluginTemplate[];
|
|
|
|
@Column({ type: 'bytea' })
|
|
sha256hash!: Buffer;
|
|
|
|
@CreateDateColumn()
|
|
createdAt!: Generated<Timestamp>;
|
|
|
|
@UpdateDateColumn()
|
|
updatedAt!: Generated<Timestamp>;
|
|
}
|