Skip to content

Commit 6600b6f

Browse files
committed
some working
1 parent c467551 commit 6600b6f

File tree

2 files changed

+81
-0
lines changed

2 files changed

+81
-0
lines changed

crates/jz-model-sqlx/Cargo.toml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[package]
2+
name = "jz-model-sqlx"
3+
version = "0.1.0"
4+
edition.workspace = true
5+
authors.workspace = true
6+
license.workspace = true
7+
documentation.workspace = true
8+
readme.workspace = true
9+
keywords.workspace = true
10+
categories.workspace = true
11+
description.workspace = true
12+
homepage.workspace = true
13+
14+
[dependencies]
15+
serde = { version = "1", features = ["derive"] }
16+
serde_json = { version = "1", features = [] }
17+
uuid = { version = "1", features = ["v7","v4"] }
18+
chrono = { version = "0.4", features = ["clock","serde"] }
19+
anyhow = { version = "1", features = ["backtrace"] }
20+
async-graphql = { version = "7", features = ["tokio"]}
21+
[dependencies.sqlx]
22+
version = "0.8.5"
23+
features = [
24+
"postgres",
25+
"runtime-tokio",
26+
"chrono",
27+
"uuid",
28+
"ipnet",
29+
"json",
30+
"mac_address",
31+
"rust_decimal",
32+
"_sqlite"
33+
]

crates/jz-model-sqlx/src/lib.rs

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
mod user {
2+
pub mod access;
3+
pub mod follow;
4+
pub mod secrets;
5+
pub mod ssh_key;
6+
pub mod token;
7+
pub mod users;
8+
}
9+
10+
mod repo {
11+
pub mod branch;
12+
pub mod commit;
13+
pub mod repository;
14+
pub mod star;
15+
pub mod watch;
16+
}
17+
mod org {
18+
pub mod invite;
19+
pub mod member;
20+
pub mod organization;
21+
pub mod team;
22+
pub mod team_member;
23+
}
24+
mod issue {
25+
pub mod comments;
26+
pub mod issues;
27+
pub mod tags;
28+
}
29+
30+
mod note {
31+
pub mod notification;
32+
}
33+
34+
mod comment {}
35+
36+
mod utils {
37+
mod uuid_v4;
38+
mod uuid_v7;
39+
pub use uuid_v4::*;
40+
pub use uuid_v7::*;
41+
}
42+
43+
pub use issue::*;
44+
pub use repo::*;
45+
pub use user::*;
46+
pub use utils::*;
47+
pub use org::*;
48+
pub use note::*;

0 commit comments

Comments
 (0)