13 lines
274 B
TypeScript
13 lines
274 B
TypeScript
import { DataTypes } from 'sequelize';
|
|
import { BaseColumnFieldOptions, Field } from './field';
|
|
|
|
export class TextField extends Field {
|
|
get dataType() {
|
|
return DataTypes.TEXT;
|
|
}
|
|
}
|
|
|
|
export interface TextFieldOptions extends BaseColumnFieldOptions {
|
|
type: 'text';
|
|
}
|