tachybase_todo/packages/database/examples/tables/comments.ts

19 lines
287 B
TypeScript
Raw Normal View History

2020-10-24 15:34:43 +08:00
import { TableOptions } from '../../src';
export default {
name: 'comments',
fields: [
{
type: 'text',
name: 'content',
},
{
type: 'belongsTo',
name: 'user',
},
{
type: 'belongsTo',
name: 'post',
},
],
} as TableOptions;