chore: reorganize project into monorepo

This commit is contained in:
2026-03-28 10:40:22 +08:00
parent 60367a5f51
commit 1455d93246
201 changed files with 30081 additions and 93 deletions

View File

@@ -0,0 +1,30 @@
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,
"friend_links",
&[
("id", ColType::PkAuto),
("site_name", ColType::StringNull),
("site_url", ColType::String),
("avatar_url", ColType::StringNull),
("description", ColType::StringNull),
("category", ColType::StringNull),
("status", ColType::StringNull),
],
&[],
)
.await
}
async fn down(&self, m: &SchemaManager) -> Result<(), DbErr> {
drop_table(m, "friend_links").await
}
}