import { EntitySchema } from "../../../../../src"
import { Post } from "../model/Post"

export const PostEntity = new EntitySchema<Post>({
    name: "post",
    target: Post,
    columns: {
        id: {
            type: Number,
            primary: true,
            generated: true,
        },
        title: {
            type: String,
        },
        text: {
            type: String,
        },
    },
})
