mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 14:06:08 +00:00
Add User to schema
This commit is contained in:
parent
b070d281e3
commit
58f7e0e76a
9
demo/src/app/database/Schema.zig
Normal file
9
demo/src/app/database/Schema.zig
Normal file
@ -0,0 +1,9 @@
|
||||
const jetquery = @import("jetzig").jetquery;
|
||||
|
||||
pub const User = jetquery.Model(@This(), "users", struct {
|
||||
id: i32,
|
||||
email: []const u8,
|
||||
password_hash: []const u8,
|
||||
created_at: jetquery.DateTime,
|
||||
updated_at: jetquery.DateTime,
|
||||
}, .{});
|
Loading…
x
Reference in New Issue
Block a user