about page

This commit is contained in:
Priec
2026-05-16 21:46:02 +02:00
parent 78c2430d21
commit 4938314889
16 changed files with 348 additions and 6 deletions

View File

@@ -0,0 +1,29 @@
use loco_rs::schema::*;
use sea_orm_migration::prelude::*;
#[derive(DeriveMigrationName)]
pub struct Migration;
#[async_trait::async_trait]
impl MigrationTrait for Migration {
async fn up(&self, m: &SchemaManager) -> Result<(), DbErr> {
create_table(m, "abouts",
&[
("id", ColType::PkAuto),
("title", ColType::StringNull),
("body", ColType::TextNull),
("address", ColType::TextNull),
("phone", ColType::StringNull),
("email", ColType::StringNull),
],
&[
]
).await
}
async fn down(&self, m: &SchemaManager) -> Result<(), DbErr> {
drop_table(m, "abouts").await
}
}