12 lines
231 B
TypeScript
12 lines
231 B
TypeScript
|
import { Column, Entity } from 'typeorm';
|
||
|
import { Base } from './base';
|
||
|
|
||
|
@Entity()
|
||
|
export abstract class MultiNamed extends Base {
|
||
|
@Column()
|
||
|
public nameCanonical: string;
|
||
|
|
||
|
@Column('simple-array')
|
||
|
public names: string[];
|
||
|
}
|