14 lines
292 B
TypeScript
14 lines
292 B
TypeScript
|
import { ColumnType } from './ColumnType';
|
||
|
import { Relation } from './Relation';
|
||
|
|
||
|
export class Column {
|
||
|
public name: string;
|
||
|
public type: ColumnType;
|
||
|
public relation?: Relation;
|
||
|
|
||
|
public constructor (name: string, type: ColumnType) {
|
||
|
this.name = name;
|
||
|
this.type = type;
|
||
|
}
|
||
|
}
|