Skip to content

Commit

Permalink
fix: Support google timestamp type (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
codelite7 authored Jul 3, 2023
1 parent 4897cb9 commit f823701
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 86 deletions.
184 changes: 99 additions & 85 deletions example/cockroachdb/example.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions example/cockroachdb/example.pb.gorm.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions example/cockroachdb/example.proto
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ message User {
string date = 48 [(gorm.field).time_format_override = "2006-01-02"];
// @gotags: fake:"{date:2006-01-02}"
optional string optional_date = 49 [(gorm.field).time_format_override = "2006-01-02"];
// @gotags: fake:"skip"
google.protobuf.Timestamp some_timestamp = 50;
}

message Company {
Expand Down
Loading

0 comments on commit f823701

Please sign in to comment.