tachybase_todo/packages/database/src/fields/text-field.ts
2021-12-06 21:23:34 +08:00

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';
}