From de67ce114cac16ff4ea2bd1a90704cb7a9c9546e Mon Sep 17 00:00:00 2001 From: Fankai Liu Date: Mon, 11 Dec 2023 20:08:36 +0800 Subject: [PATCH] fix fix table name --- Cargo.lock | 2 +- src/template/src/entities/user.hbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e106924..153b41a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1238,7 +1238,7 @@ checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" [[package]] name = "salvo-cli" -version = "0.1.29" +version = "0.1.30" dependencies = [ "ansi_term", "anyhow", diff --git a/src/template/src/entities/user.hbs b/src/template/src/entities/user.hbs index c3a79ba..dc461bd 100644 --- a/src/template/src/entities/user.hbs +++ b/src/template/src/entities/user.hbs @@ -16,7 +16,7 @@ use sea_orm::entity::prelude::*; use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)] -#[sea_orm(table_name = "user")] +#[sea_orm(table_name = "users")] pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String,