// BeforeInsert hooks into insert operations
BeforeInsert hooks into insert operations
// BeforeInsert hooks into insert operations
func (b *Base) BeforeInsert(_ orm.DB) error {
	b.ID = xid.New().String()
	now := time.Now()
	b.CreatedAt = now
	b.UpdatedAt = now
	return nil
}
func ( b * Base ) BeforeInsert ( _ orm . DB ) error { b . ID = xid . New ( ) . String ( ) now := time . Now ( ) b . CreatedAt = now b . UpdatedAt = now return nil }
BeforeInsert hooks into insert operations
BeforeInsert hooks into insert operations