mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04:00
26 lines
501 B
TypeScript
26 lines
501 B
TypeScript
import { DatabaseSchema, Table } from 'src/sql-tools';
|
|
|
|
@Table('table-1')
|
|
export class Table1 {}
|
|
|
|
export const description = 'should register a table with a specific name';
|
|
export const schema: DatabaseSchema = {
|
|
name: 'postgres',
|
|
schemaName: 'public',
|
|
functions: [],
|
|
enums: [],
|
|
extensions: [],
|
|
parameters: [],
|
|
tables: [
|
|
{
|
|
name: 'table-1',
|
|
columns: [],
|
|
indexes: [],
|
|
triggers: [],
|
|
constraints: [],
|
|
synchronize: true,
|
|
},
|
|
],
|
|
warnings: [],
|
|
};
|