diff --git a/src/main.rs b/src/main.rs index 8b5bf1f..0ef72fa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,23 +7,10 @@ use axum::{ use chrono::{prelude::*, Duration, ParseError}; use serde::{Deserialize, Serialize}; use std::{env, ops::Deref, sync::Arc}; -use welds::prelude::*; mod db; mod generate; -#[derive(WeldsModel)] -#[welds(table = "authorize")] -pub struct Authorize { - #[welds(primary_key)] - pub id: i32, - pub project: String, - pub key: String, - pub device_id: String, - pub expire: String, - pub insert_time: String, -} - #[tokio::main] async fn main() -> Result<(), Box> { // 根据操作系统选择数据库路径