defaults sets the default values of the builder before save.
()
| 141 | |
| 142 | // defaults sets the default values of the builder before save. |
| 143 | func (_c *AllowListCreate) defaults() { |
| 144 | if _, ok := _c.mutation.CreatedAt(); !ok { |
| 145 | v := allowlist.DefaultCreatedAt() |
| 146 | _c.mutation.SetCreatedAt(v) |
| 147 | } |
| 148 | if _, ok := _c.mutation.UpdatedAt(); !ok { |
| 149 | v := allowlist.DefaultUpdatedAt() |
| 150 | _c.mutation.SetUpdatedAt(v) |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | // check runs all checks and user-defined validators on the builder. |
| 155 | func (_c *AllowListCreate) check() error { |
no test coverage detected