updates
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
import type { BUN_MARIADB_DatabaseSchemaType } from "@moduletrace/bun-mariadb";
|
||||
|
||||
const schema: BUN_MARIADB_DatabaseSchemaType = {
|
||||
tables: [
|
||||
{
|
||||
tableName: "blog_posts",
|
||||
fields: [
|
||||
{
|
||||
fieldName: "title",
|
||||
dataType: "VARCHAR",
|
||||
},
|
||||
{
|
||||
fieldName: "slug",
|
||||
dataType: "VARCHAR",
|
||||
},
|
||||
{
|
||||
fieldName: "excerpt",
|
||||
dataType: "TEXT",
|
||||
},
|
||||
{
|
||||
fieldName: "body",
|
||||
dataType: "LONGTEXT",
|
||||
html: true,
|
||||
},
|
||||
{
|
||||
fieldName: "metadata",
|
||||
dataType: "TEXT",
|
||||
json: true,
|
||||
},
|
||||
{
|
||||
fieldName: "published",
|
||||
dataType: "TINYINT",
|
||||
options: [0, 1],
|
||||
},
|
||||
{
|
||||
fieldName: "meta_title",
|
||||
dataType: "VARCHAR",
|
||||
},
|
||||
{
|
||||
fieldName: "meta_description",
|
||||
dataType: "TEXT",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
tableName: "portfolio",
|
||||
fields: [],
|
||||
},
|
||||
{
|
||||
tableName: "documents",
|
||||
fields: [],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default schema;
|
||||
Reference in New Issue
Block a user