Updates
This commit is contained in:
+184
-8
@@ -5,13 +5,22 @@ const schema: BUN_MARIADB_DatabaseSchemaType = {
|
||||
{
|
||||
tableName: "blog_posts",
|
||||
fields: [
|
||||
{
|
||||
fieldName: "id",
|
||||
dataType: "BIGINT",
|
||||
primaryKey: true,
|
||||
autoIncrement: true,
|
||||
notNullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "title",
|
||||
dataType: "VARCHAR",
|
||||
notNullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "slug",
|
||||
dataType: "VARCHAR",
|
||||
notNullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "excerpt",
|
||||
@@ -20,35 +29,202 @@ const schema: BUN_MARIADB_DatabaseSchemaType = {
|
||||
{
|
||||
fieldName: "body",
|
||||
dataType: "LONGTEXT",
|
||||
html: true,
|
||||
markdown: true,
|
||||
},
|
||||
{
|
||||
json: true,
|
||||
fieldName: "metadata",
|
||||
dataType: "TEXT",
|
||||
json: true,
|
||||
nullValue: true,
|
||||
},
|
||||
{
|
||||
dataType: "BOOLEAN",
|
||||
fieldName: "published",
|
||||
dataType: "TINYINT",
|
||||
options: [0, 1],
|
||||
defaultValue: "0",
|
||||
},
|
||||
{
|
||||
fieldName: "meta_title",
|
||||
dataType: "VARCHAR",
|
||||
fieldName: "meta_title",
|
||||
},
|
||||
{
|
||||
fieldName: "meta_description",
|
||||
dataType: "TEXT",
|
||||
fieldName: "meta_description",
|
||||
},
|
||||
{
|
||||
fieldName: "date_created",
|
||||
dataType: "VARCHAR",
|
||||
notNullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "date_created_code",
|
||||
dataType: "BIGINT",
|
||||
notNullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "date_created_timestamp",
|
||||
dataType: "TIMESTAMP",
|
||||
defaultValueLiteral: "CURRENT_TIMESTAMP",
|
||||
nullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "date_updated",
|
||||
dataType: "VARCHAR",
|
||||
notNullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "date_updated_code",
|
||||
dataType: "BIGINT",
|
||||
notNullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "date_updated_timestamp",
|
||||
dataType: "TIMESTAMP",
|
||||
defaultValueLiteral: "CURRENT_TIMESTAMP",
|
||||
nullValue: true,
|
||||
},
|
||||
],
|
||||
indexes: [],
|
||||
uniqueConstraints: [],
|
||||
},
|
||||
{
|
||||
tableName: "portfolio",
|
||||
fields: [],
|
||||
fields: [
|
||||
{
|
||||
fieldName: "id",
|
||||
dataType: "BIGINT",
|
||||
primaryKey: true,
|
||||
autoIncrement: true,
|
||||
notNullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "title",
|
||||
dataType: "VARCHAR",
|
||||
notNullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "description",
|
||||
dataType: "VARCHAR",
|
||||
nullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "url",
|
||||
dataType: "VARCHAR",
|
||||
nullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "image",
|
||||
dataType: "VARCHAR",
|
||||
nullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "full_description",
|
||||
dataType: "LONGTEXT",
|
||||
nullValue: true,
|
||||
html: true,
|
||||
},
|
||||
{
|
||||
fieldName: "starting_date",
|
||||
dataType: "VARCHAR",
|
||||
nullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "completion_date",
|
||||
dataType: "VARCHAR",
|
||||
nullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "project_order",
|
||||
dataType: "INT",
|
||||
},
|
||||
{
|
||||
fieldName: "date_created",
|
||||
dataType: "VARCHAR",
|
||||
notNullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "date_created_code",
|
||||
dataType: "BIGINT",
|
||||
notNullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "date_created_timestamp",
|
||||
dataType: "TIMESTAMP",
|
||||
defaultValueLiteral: "CURRENT_TIMESTAMP",
|
||||
nullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "date_updated",
|
||||
dataType: "VARCHAR",
|
||||
notNullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "date_updated_code",
|
||||
dataType: "BIGINT",
|
||||
notNullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "date_updated_timestamp",
|
||||
dataType: "TIMESTAMP",
|
||||
defaultValueLiteral: "CURRENT_TIMESTAMP",
|
||||
nullValue: true,
|
||||
},
|
||||
],
|
||||
indexes: [],
|
||||
},
|
||||
{
|
||||
tableName: "documents",
|
||||
fields: [],
|
||||
fields: [
|
||||
{
|
||||
fieldName: "id",
|
||||
dataType: "BIGINT",
|
||||
primaryKey: true,
|
||||
autoIncrement: true,
|
||||
notNullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "project_name",
|
||||
dataType: "VARCHAR",
|
||||
notNullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "html",
|
||||
dataType: "LONGTEXT",
|
||||
html: true,
|
||||
cssFiles: [],
|
||||
},
|
||||
{
|
||||
fieldName: "date_created",
|
||||
dataType: "VARCHAR",
|
||||
notNullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "date_created_code",
|
||||
dataType: "BIGINT",
|
||||
notNullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "date_created_timestamp",
|
||||
dataType: "TIMESTAMP",
|
||||
defaultValueLiteral: "CURRENT_TIMESTAMP",
|
||||
nullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "date_updated",
|
||||
dataType: "VARCHAR",
|
||||
notNullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "date_updated_code",
|
||||
dataType: "BIGINT",
|
||||
notNullValue: true,
|
||||
},
|
||||
{
|
||||
fieldName: "date_updated_timestamp",
|
||||
dataType: "TIMESTAMP",
|
||||
defaultValueLiteral: "CURRENT_TIMESTAMP",
|
||||
nullValue: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user